scheduling

Job scheduling with minimization by parallel grouping

て烟熏妆下的殇ゞ 提交于 2020-07-07 16:11:11
问题 I have a job scheduling problem with a twist- a minimization constraint. The task is- I have many jobs, each with various dependencies on other jobs, without cycles. These jobs have categories as well, and can be ran together in parallel for free if they belong to the same category. So, I want to order the jobs so that each job comes after its dependencies, but arranged in such a way that they are grouped by category (to run many in parallel) to minimize the number of serial jobs I run. That

Autosys dependency on mainframe job

穿精又带淫゛_ 提交于 2020-02-25 09:58:07
问题 We have an Autosys job (let's call it job_a) that has a 3am time dependency and is also supposed to await successful completion of a mainframe job (job_m, which in our case is always successful). Job_m is run via the OPC scheduler on the mainframe, which communicates job completion to Autosys. It can run any time between 2am and 6am. My understanding of how Autosys works is that it writes an entry into a table in its database when job_m completes, and when job_a checks its dependencies, it

Why Goroutine Can Get Scheduled After Busy Loop?

梦想的初衷 提交于 2020-01-30 04:07:35
问题 See these code below. I am not doing this in any production, just for studying purpose. I have heard from many posters that busy loop usually prevents from scheduling because they leave no chance for the go sheduler to scheduler. If this is true why deadloop() goroutine can gets scheduled?? I am using golang 1.12 and testing on windows os. func main() { go deadloop() // v1 -- keeps printing forever var i =1 for { i++ } } func deadloop() { i := 0 for { fmt.Printf("from deadloop\n") i++ } }

Why Goroutine Can Get Scheduled After Busy Loop?

醉酒当歌 提交于 2020-01-30 04:05:38
问题 See these code below. I am not doing this in any production, just for studying purpose. I have heard from many posters that busy loop usually prevents from scheduling because they leave no chance for the go sheduler to scheduler. If this is true why deadloop() goroutine can gets scheduled?? I am using golang 1.12 and testing on windows os. func main() { go deadloop() // v1 -- keeps printing forever var i =1 for { i++ } } func deadloop() { i := 0 for { fmt.Printf("from deadloop\n") i++ } }

How schedule a job run at 8 PM CET using schedule package in python

被刻印的时光 ゝ 提交于 2020-01-30 03:27:48
问题 I want to schedule a python script to run at every workday (monday to friday) at 8 PM CET. How can this be done. import schedule import time def task(): print("Job Running") schedule.every(10).minutes.do(task) How can this be done. 回答1: Is there a reason you cannot use either crontab or Windows Task Scheduler to schedule your jobs? Answer One: The schedule module documentation does not indicate a simple way to schedule a python script to run every workday (monday to friday) at 8 PM CET. Plus

Java Scheduling Calendar

前提是你 提交于 2020-01-24 01:30:44
问题 I have a j2ee web application which supports scheduling of execution of jobs. I am looking for a free calendar component written in java which allows scheduling functionalities as well as capable of changing view mode of tasks either by viewing taks for whole year, month view, week view, day view. Do you have any suggestion. Im sorry something came up with the implementation. I dnt have to use this calendar for triggering or calling jobs. I just need to retrieve schedules from database and

Understanding Scheduling and /proc/[pid]/sched

戏子无情 提交于 2020-01-23 18:23:05
问题 I have a single threaded application that is (spinning and) pinned to a core with taskset and CPU isolation (i.e. isolcpus=12-23 nohz_full=21,22,23 rcu_nocbs=12-23; I have 2 CPUs, and 12 core each -- Skylake): exec taskset -c 22 setuidgid myuser envdir ./env -c = /opt/bin/UtilityServer > /tmp/logs/utility-server.log For some reason, after running few hours, I checked the stats: UtilityServer (1934, #threads: 1) ------------------------------------------------------------------- se.exec_start

Liferay Scheduler not working after server restart

前提是你 提交于 2020-01-23 07:46:29
问题 I am scheduling a job using the code below. @Controller @RequestMapping("VIEW") public class MyController { @RenderMapping public String defaultView() { try { String cronText = "0 30 12 1/1 * ? *"; String description = "Message Scheduler Description"; String destinationName = DestinationNames.SCHEDULER_DISPATCH; int exceptionsMaxSize = 0; String portletId = "portletId"; Message message = new Message(); message.put(SchedulerEngine.MESSAGE_LISTENER_CLASS_NAME,SchedulerListener.class.getName());

Liferay Scheduler not working after server restart

痴心易碎 提交于 2020-01-23 07:46:02
问题 I am scheduling a job using the code below. @Controller @RequestMapping("VIEW") public class MyController { @RenderMapping public String defaultView() { try { String cronText = "0 30 12 1/1 * ? *"; String description = "Message Scheduler Description"; String destinationName = DestinationNames.SCHEDULER_DISPATCH; int exceptionsMaxSize = 0; String portletId = "portletId"; Message message = new Message(); message.put(SchedulerEngine.MESSAGE_LISTENER_CLASS_NAME,SchedulerListener.class.getName());

How Create a Scheduler (e.g. to schedule tweets, or an api request)

て烟熏妆下的殇ゞ 提交于 2020-01-21 08:14:39
问题 I have a table of schedule items, they may be scheduled for the same time. I'm wondering how to have them all execute at the correct time when: The problem I see is that executing one scheduled item (like a scheduled twitter post) requires an API request which may take up to a second or two - probably longer. If I execute them sequentially + there are too many scheduled items at the same time, the time they get executed at could be after the scheduled time. How would I go about building this