Questions tagged [job-scheduling]
A job scheduler is a computer application for controlling unattended background program execution (commonly called batch processing).
1,358
questions
1099
votes
10
answers
535k
views
How do I put an already-running process under nohup?
I have a process that is already running for a long time and don't want to end it.
How do I put it under nohup (that is, how do I cause it to continue running even if I close the terminal?)
67
votes
4
answers
39k
views
What tools are available to test JobScheduler?
We're implementing a Job via JobScheduler for background loading of data. The job will fire about once a day. What tools are available for us to test this functionality (possibly ADB)?
Use cases are ...
64
votes
4
answers
72k
views
Run a Jenkins job every one minute using H/1 * * * *
How can I run a job created in Jenkins every one minute ? Am I missing anything?
PS: I'm trying not to use: */1 * * * *
58
votes
3
answers
51k
views
Alternatives to Quartz for job scheduling [closed]
Has anyone found any alternative open-source solutions to Quartz which they are happy with?
I know Cronacle is a well respected (and pricey) closed source solution for job scheduling but I'd like to ...
46
votes
2
answers
47k
views
What is Spark Job ?
I have already done with spark installation and executed few testcases setting master and worker nodes. That said, I have a very fat confusion of what exactly a job is meant in Spark context(not ...
44
votes
8
answers
74k
views
Spring and scheduled tasks on multiple instances
We have a Spring Boot application, and have scheduled tasks.
We want to deploy our application on multiple servers, so will be multiple instances of application.
How to configure Spring to run ...
38
votes
4
answers
50k
views
EJB @Schedule wait until method completed
I want to write a back-ground job (EJB 3.1), which executes every minute. For this I use the following annotation:
@Schedule(minute = "*/1", hour = "*")
which is working fine.
However, sometimes ...
27
votes
5
answers
42k
views
Triggering spark jobs with REST
I have been of late trying out apache spark. My question is more specific to trigger spark jobs. Here I had posted question on understanding spark jobs. After getting dirty on jobs I moved on to my ...
26
votes
1
answer
10k
views
SecurityException: Caller no longer running
I am facing below issue in Android O and above when trying to run my JobIntentService, I am having a tough time to reproduce the issue :
Caused by java.lang.SecurityException: Caller no longer ...
23
votes
7
answers
76k
views
Show all MySQL events that are running on my database?
I have a MySQL database. I am running two MySQL EVENTs. I need to get rid of one. I don't remember it's name. What do I do?
23
votes
2
answers
22k
views
job scheduler in android N with less then 15 minutes interval
Part of my question, how I can set up a job with less then 15 minutes interval in "Nougat", was answerd by "blizzard" in his answer here:
Job Scheduler not running on Android N
He explained the ...
20
votes
4
answers
29k
views
DBMS_JOB vs DBMS_SCHEDULER
What is the difference between DBMS_JOB and DBMS_SCHEDULER ?
20
votes
3
answers
18k
views
What is a good Sidekiq-like job system for node.js? [closed]
(Most of the questions asked here about this subject are a bit old, and I was wondering what had change in the Node ecosystem it all those years.)
I'm basically looking to implement a job queue in an ...
20
votes
2
answers
3k
views
YARN not preempting resources based on fair shares when running a Spark job
I have a problem with re-balancing Apache Spark jobs resources on YARN Fair Scheduled queues.
For the tests I've configured Hadoop 2.6 (tried 2.7 also) to run in pseudo-distributed mode with local ...
18
votes
3
answers
49k
views
How to check whether Quartz cron job is running?
How to check if scheduled Quartz cron job is running or not? Is there any API to do the checking?
17
votes
2
answers
23k
views
Cancel or Delete Scheduled Job - HangFire
I have scheduled a Job via using Hangfire library. My scheduled Code like below.
BackgroundJob.Schedule(() => MyRepository.SomeMethod(2),TimeSpan.FromDays(7));
public static bool ...
17
votes
1
answer
10k
views
How jobs are assigned to executors in Spark Streaming?
Let's say I've got 2 or more executors in a Spark Streaming application.
I've set the batch time of 10 seconds, so a job is started every 10 seconds reading input from my HDFS.
If the every job ...
17
votes
3
answers
8k
views
Android JobScheduler onStartJob called multiple times
The JobScheduler calls onStartJob() multiple times, although the job finished. Everything works fine, if I schedule one single job and wait until it has finished. However, if I schedule two or more ...
16
votes
3
answers
27k
views
Design a generic job scheduler [closed]
I am trying to design a generic job scheduler to expand my architectural knowledge and ability to think about system design questions in interviews. So far, what I have come up with is below. Can you ...
15
votes
1
answer
19k
views
What is exactly mean by 'DisallowConcurrentExecution' in Quartz.net
I have a Quartz.net Job with the following definition.
[PersistJobDataAfterExecution]
[DisallowConcurrentExecution]
public class AdItemsJob : IJob, IInterruptableJob
{
public ...
15
votes
1
answer
3k
views
How to best run Apache Airflow tasks on a Kubernetes cluster?
What we want to achieve:
We would like to use Airflow to manage our machine learning and data pipeline while using Kubernetes to manage the resources and schedule the jobs. What we would like to ...
15
votes
2
answers
26k
views
Meaning of pending machine in autosys
Many time I have seen some of our autosys jobs go into status: Pending Machine. What is the meaning of this status? And its generally the com job and not the box job that goes into this status (box is ...
13
votes
1
answer
23k
views
Combining Quartz.Net with UI
I have been working on MVC3 project. I have just created Sample email sending job with Quartz.Net in my application. This time, I need to build a job scheduling system in my MVC3 project. The scenario ...
13
votes
1
answer
4k
views
Android JobScheduler running way too often when using setPeriodic()
I noticed my scheduled JobScheduler is executing the job way too often. I have it set to execute daily and it requires to be idle, to be on wlan and to be charging, but when those conditions are met ...
13
votes
2
answers
11k
views
when a quartz job fires, is it a new job class instance?
I am very new to Quartz and I have some doubts about the jobs lifecycle.
Let's suppose I have a single job configured to do some stuff.
The job fires and ends its work. When it fires again is it the ...
13
votes
2
answers
6k
views
What is a "MySQL event"?
What is a "MySQL event"? What is its purpose? How is it different from a "job scheduler"?
Many posts on SO, and the MySQL documentation, describe how to implement MySQL events, but I am just ...
13
votes
4
answers
2k
views
GcmNetworkManager scheduling issues
I am using GcmNetworkManager in my application for periodic and one of task task execution. I am getting these 2 errors and unable to figure out the reason. Implementation is correct as i am unable to ...
13
votes
1
answer
2k
views
Maximize profit in scheduling unit tasks with dependencies
Problem I have n jobs to schedule in P seconds on unlimited number of machines with dependencies between the jobs i.e . for every job there is a set of jobs which are to be scheduled only after this ...
12
votes
2
answers
20k
views
How to get next run time Spring Scheduling?
I am working on a scheduling project which executes multiple jobs at regular intervals.
I am using a cron scheduling as in the example below. The jobs are getting executed successfully no problems.
...
12
votes
8
answers
86k
views
Windows Task Scheduler Doesn't Run VBScript
I am trying to automate a VBScript by using Windows Task Scheduler. However, I tried to use cscript.exe + "C:\...\script.vbs" but it didn't run. I also tried to directly run the same command in CMD (...
12
votes
1
answer
48k
views
Running cron job/task at every hour [duplicate]
Which one is the correct syntax for running a job at every hour?
0 0 * * * *
0 0 */1 * * *
Also how are they both different?
12
votes
2
answers
13k
views
CPU Scheduling : Finding burst time
In the FCFS scheduling algorithm the drawback is that if a process P1 with a higher burst time comes before some processes P2,P3... with much smaller burst times then the average waiting time and ...
12
votes
3
answers
12k
views
How to schedule a cron job in spring boot without using @Scheduled() annotation
In spring boot, can I schedule a spring job by not using @Scheduled annotation to a method?
I am working with spring job in the spring boot. I want to schedule a job by using cron expression, but ...
12
votes
2
answers
2k
views
How to tell Condor to dispatch jobs only to machines on the cluster, that have "numpy" installed on them?
I just figured out how to send jobs to be processed on machines on the cluster by using Condor. Since we have a lot of machines and not each of those machines are configured the same, I was wondering:
...
12
votes
1
answer
3k
views
What's best practice for HA gearman job servers
From gearman's main page, they mention running with multiple job servers so if a job server dies, the clients can pick up a new job server. Given the statement and diagram below, it seems that the job ...
11
votes
1
answer
42k
views
Running a Cron job daily from 6 am to 11:30 pm [closed]
Could you help me please to run my cron job daily
from 6 am to 11:30 pm in the following format
command path
Thanks
11
votes
3
answers
1k
views
Play Framework: Impact of Jobs on the stateless model
One of the great things about the Play framework is that it is fully stateless and only request/response-oriented. This is really nice since it allows me to deploy my app to the cloud and scale the ...
10
votes
2
answers
18k
views
withoutOverlapping() is not working in Laravel Schedule
$schedule->call(function ()
{
error_log("Line Schedule 1:Start");
//Send Email
error_log("Line Schedule 1:End");
})->everyFiveMinutes()->...
10
votes
2
answers
2k
views
Implementing first fit like algorithm
Problem:
I have 3 machines, each machine have a limit of 30 ms time, each machine have 3 zones that a task can't be executed there.
The tasks have a P (priority) and W (weight, which is the time to ...
10
votes
6
answers
12k
views
Distributed Job scheduling, management, and reporting
I recently had a play around with Hadoop and was impressed with it's scheduling, management, and reporting of MapReduce jobs. It appears to make the distribution and execution of new jobs quite ...
9
votes
5
answers
9k
views
Is sleep() a good idea for the main loop of a job-scheduling app
I'm writing a job-scheduling app in Ruby for my work (primarily to move files using various protocol at a given frequency)
My main loop looks like this :
while true do
# some code to launch the ...
9
votes
5
answers
26k
views
Strange behavior of quartz in cluster configuration
I'm developing scheduled services.
The application is developed using JDK 1.6, Spring Framework 2.5.6 and Quartz 1.8.4 to schedule jobs.
I've two clustered servers with WebLogic Server 10.3.5.
...
9
votes
3
answers
4k
views
How can I convert a Bundle to a PersistableBundle?
API21 released the PersistableBundle which is a bundle that the system retains for various purposes (JobScheduler jobs, ShortcutInfos etc). I'd like an easy way to convert the Bundle's that are ...
9
votes
1
answer
8k
views
Adding and removing jobs dynamically to Quartz.NET Windows Service
I am developing an email marketing WinForm application. And for the scheduling of campaigns, I decided to use Quartz.NET. I need it to be running as a Windows Service. but I also want the user to be ...
9
votes
1
answer
9k
views
Quartz Scheduler: Trigger some jobs on every cluster node and some only once per cluster
I am using Quartz Scheduler as a Spring bean in a clustered environment.
I have some jobs annotated with @NotConcurrent and they are running once per cluster (i.e. only in one node, only in one ...
9
votes
2
answers
2k
views
Task Scheduling with complex dependencies
I'm looking for a way of scheduling tasks where a task starts once several previous tasks have completed.
I have several hundred "collector" processes which collect data from a variety of sources and ...
9
votes
1
answer
4k
views
how to detect if a thread or process is getting starved due to OS scheduling
This is on Linux OS. App is written in C++ with ACE library.
I am suspecting that one of the thread in the process is getting blocked for unusually long time(5 to 40 seconds) sometimes. The app runs ...
8
votes
2
answers
5k
views
C# - Windows Service with awareness of System Time
I am thinking about writing a windows service that will turn a certain functionality on or off at times specified by the user (using a configuration utility I will provide). Basically, the user would ...
8
votes
4
answers
19k
views
Open Source Job Scheduler with REST API
Are there any open source Job Scheduler with REST API for commercial use which will support features like:
Tree like Job dependency
Hold & Release
Rerun failed steps
Parallelism
Help would be ...
8
votes
1
answer
2k
views
Job Scheduling in Haskell
What work has been done so far in Haskell to the effect of scheduling jobs for execution in a native way? Here's an sketch of what I am thinking.
Say I have a function work I want executed at Date, ...