Questions tagged [scheduled-tasks]

A scheduled task is a computer task that is scheduled to happen at a certain time and may repeat.

Scheduled tasks are used for automation so that human presence in not required in order to execute the required task at the required time. Tasks may be scheduled to run once, or repeatedly at a specific time of a specific date.

Tasks may also be scheduled to run when specific preconditions are met. This is usually achieved by running a second scheduled task that runs sufficiently frequently, checking for preconditions, executing the desired program when these preconditions are met.

Tasks may be scheduled:

  • On *NIX: using cron. See
  • On Windows: using Windows Scheduled tasks

Lots of task automation software exists, including

7207 questions
2
votes
2 answers

How to schedule django crons?

I have a cron which I have written using django-cron: from django_cron import CronJobBase, Schedule class MyCronJob(CronJobBase): RUN_EVERY_MINS = 1 schedule = Schedule(run_every_mins=RUN_EVERY_MINS) code = 'statuscheck.my_cron_job' …
CodingDuck
  • 60
  • 2
  • 9
2
votes
2 answers

Confusing issue with batch as a Scheduled Task

I have a DOS batch file to run on a daily basis. Something similar like - @ECHO ON SET COMMON_LIB=commons-io-1.3.1.jar; SET AR_CLASS_PATH=%CLASSPATH%%COMMON_LIB% java -cp %AR_CLASS_PATH% -Xms128m -Xmx256m FileCreating PAUSE When I run the…
2
votes
0 answers

Quartz default JobFactory implementation do not call setters

According to Quratz documentation2.x Here If you add setter methods to your job class that correspond to the names of keys in the JobDataMap (such as a setJobSays(String val) method for the data in the example above), then Quartz’s default…
Khalid Shah
  • 3,132
  • 3
  • 20
  • 39
2
votes
3 answers

How to Efficiently Document SQL Server Agent Jobs

My team is pretty much all new and we inherited several automated jobs which we have little or no documentation on (nothing in the job description either). We have hundreds of automated jobs that run on the SQL Server Agent and various servers so I…
2
votes
2 answers

Schedule a cronjob to run every 2 1/2hours

I would like to run a cronjob every 150 minutes. Is it possible? Any tip would be much appreciated.
karmatic
  • 81
  • 4
2
votes
2 answers

How to access GUI of a Windows application run by task scheduler under a specific domain user?

On our server running Windows Server 2008 R2 there is a scheduled task that runs a Windows application (.Net 4.0) under a specific domain user that performs some tasks and reports its progress in a listbox on a form that pops up by double clicking…
Rez.Net
  • 1,354
  • 2
  • 19
  • 28
2
votes
0 answers

What is the equivalent to `0 08-18 * * *`(crontab) in mesos-chronos?

I have read the documentation how to add a scheduled job https://mesos.github.io/chronos/docs/api.html#adding-a-scheduled-job Although I don't know how to do it. I would like to execute a job in mesos-chronos At minute 0 past every hour from 8…
lolocripto
  • 21
  • 2
2
votes
3 answers

Submitted jobs in Slurm not appearing in squeue, not getting scheduled

I am attempting to create my own computer cluster (perhaps a Beowulf, though throwing around that term willy nilly apparently isn't cool) and have installed Slurm as my scheduler. Everything appears fine upon inputting…
Danny Weiss
  • 21
  • 1
  • 2
2
votes
3 answers

FluentScheduler dependency injection in constructor

I am experimenting with FluentScheduler for some background tasks in ASP.net Core API. The job should send push notifications every day at a particular time interval based on few criteria. I had gone through the document and implemented a test…
Kirk
  • 4,957
  • 2
  • 32
  • 59
2
votes
2 answers

How to run a bash script every hour and how to kill it on cloud desktop?

I want to run a bash script every hour in my cloud desktop which can be done by following commands: while true; do ./parseScript.sh; sleep 3600; done minute hour day month day-of-week command-line-to-execute But the problem is my cloud window will…
user6438693
2
votes
1 answer

What is the best way for softcoding schedule tasks in Spring Boot?

In my Spring program, I have a Scheduled task. @Scheduled(cron = "0 0 0 2 * *") // hardcoded schedule public void executeBatchJob() { batchJob.execute(); } I have a specification change and now have to let the user freely configure the date…
cozyconemotel
  • 1,121
  • 2
  • 10
  • 22
2
votes
5 answers

Scheduling jobs from a web environment on Linux

I am developing an application in PHP on Linux/Apache. I want to be able to schedule PHP jobs (scripts) for execution at some specific time in the future from within the application. I know that many people will recommend cron and at, but first of…
Anders Feder
  • 71
  • 1
  • 3
2
votes
4 answers

Running timed job

Say I have a database with a table, each record in this table corresponds with an action to be ececuted. This table has a datetime field in which the next moment the action should be executed is stored. This table is being read by a windows servic…
Oxymoron
  • 1,382
  • 4
  • 20
  • 40
2
votes
1 answer

Spring Batch Job Scheduler

Is there any way to specify Scheduler for specific Spring Batch job configured via XML without utils RunScheduler class like this: https://www.mkyong.com/spring-batch/spring-batch-and-spring-taskscheduler-example/? So for now my config looks like…
2
votes
2 answers

Windows scheduler isn't executing the batch script,but script works fine from command line

I want to create folder with todays date as the name of folder. Then, I want to move the data from remote machine to the newly created folder. I have written a batch script which looks like My batch script. name: run.bat ::@ECHO off SET…
v09
  • 840
  • 2
  • 12
  • 22