job-scheduling

Naive parallelization in a .pbs file

混江龙づ霸主 提交于 2019-12-11 11:22:50
问题 Is it possible to do parallelize across a for loop in a PBS file? Below is an my attempt.pbs file. I would like to allocate 4 nodes and simultaneously allocate 16 processes per node. I have successfully done this but now I have 4 jobs and I would like to send one job to each node. (I need to do this because queuing algo will make me wait a few days for submitting 4 separate job on the cluster I'm using) #!/bin/bash #PBS -q normal #PBS -l nodes=4:ppn=16:native #PBS -l walltime=10:00:00 #PBS -N

Job-Scheduling in Play! Framework

筅森魡賤 提交于 2019-12-11 08:23:57
问题 I am currently into the development of a play-powered (v. 1.2.4) application where users can perform certain tasks and gain rewards for doing so. These tasks require some energy, which will be refilled over time. The basic setting is as follows: public class User extends Model { public Long energy; public Long maxenergy; public Long cooldown = Long.valueOf(300); } public class Task extends Controller { public static void perform(Long id) { User user = User.findById(id).first(); // do some

Android JobScheduler JobService not working

旧时模样 提交于 2019-12-11 06:14:27
问题 Hi I have implemented Android JobScheduler API which was working fine till recently but since 2/3 days there seems to be a inconsistent behaviour in jobs which are scheduled. Here is the jobinfo builder config : jobInfo = new JobInfo.Builder(118, new ComponentName(this, LocationJob.class)) .setBackoffCriteria(30000, JobInfo.BACKOFF_POLICY_EXPONENTIAL) .setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY) .setExtras(persistableBundle).build(); jobScheduler.schedule(jobInfo); Basic working is when

Quartz Scheduler using JDBC JobStore

*爱你&永不变心* 提交于 2019-12-11 05:39:53
问题 For the first time i stored the jobs and scheduled them using crontrigger with the below code. package com.generalsentiment.test.quartz; import static org.quartz.CronScheduleBuilder.cronSchedule; import static org.quartz.JobBuilder.newJob; import static org.quartz.TriggerBuilder.newTrigger; import java.util.Date; import java.util.Properties; import org.quartz.CronTrigger; import org.quartz.JobDetail; import org.quartz.Scheduler; import org.quartz.SchedulerFactory; import org.quartz

Grails Invoke a controller method from a scheduled job

筅森魡賤 提交于 2019-12-11 03:23:27
问题 in my grails application i'd like to invoke from a scheduled job class a method contained in a controller. Reading this [http://www.grails.org/Job+Scheduling+(Quartz)], I can see that datasources and services are auto-wired by name in job classes. It seems this is not possible for controllers by default, probably 'cause controllers aren't supposed to do this kind of stuff. BTW, is there a way to get a controller method called from a job in grails? And could this be such a bad practice to you

How to fire akka scheduler daily for a particular time?

半城伤御伤魂 提交于 2019-12-11 01:09:45
问题 I created a Akka's scheduler to send mails daily by a fixed time ( example 6:00 Am daily ). So how to call the actor ? I mean what the logic should i use ? Thank you. 回答1: Just calculate the difference between now and the following 6PM, put that as the initial delay and then repeat every 24h? 回答2: Starting the job at 6 AM and simply repeating with 24 hour interval won't work if the server works in time zone observing dst - for half of the year the job will fire either at 5 AM or at 7 AM,

Pass context to JobService Android JobScheduler

帅比萌擦擦* 提交于 2019-12-10 22:13:30
问题 I am building an app where I store the url and Json in my local SQLite db and then schedule a JobService. In the JobService, I take out all the requests one by one from the db and execute them. Once they are executed, I get the response inside the JobService only. Now my real problem is how do I send the response back to the user from the service. I thought of implementing a callback/listener in activity and passing the value in listener object inside the service. But I am taking out the

Quartz Error Misfire Handling and Failure on Job Recovery

风流意气都作罢 提交于 2019-12-10 18:46:09
问题 I'm new to JSP and Quartz Scheduling! In this project, I'm trying to make the quartz scheduler continue functioning in case the server is turned off then on ignoring the missed jobs. For this, I researched JobPersistence and I have modified the quartz.properties file as the following: org.quartz.threadPool.threadCount=5 org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX org.quartz.jobStore.tablePrefix = QRTZ_ org.quartz.jobStore.useProperties = true org.quartz.jobStore

Job Scheduling setRequiresDeviceIdle(true) and setPeriodic() not working

你说的曾经没有我的故事 提交于 2019-12-10 15:23:09
问题 I am working on app that do the background task after 10 second and check whether device is idle or not but some how It fires every 10 second without checking Device is idle or not. MainActivity.java private static final int JOB_ID = 1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mJobScheduler = (JobScheduler) getSystemService(this.JOB_SCHEDULER_SERVICE); construct_job(); } private void construct

start a .exe in the background with parameters in a powershell script

混江龙づ霸主 提交于 2019-12-10 13:24:38
问题 I have a programm which i usually start like this in powershell: .\storage\bin\storage.exe -f storage\conf\storage.conf What is the correct syntax for calling it in the background? I tried many combinations like: start-job -scriptblock{".\storage\bin\storage.exe -f storage\conf\storage.conf"} start-job -scriptblock{.\storage\bin\storage.exe} -argumentlist "-f", "storage\conf\storage.conf" but without success. Also it should run in a powershell script. 回答1: The job will be another instance of