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 find the process ID of a running scheduled task?

I can determine running tasks with: $TaskService = new-object -ComObject('Schedule.Service') $TaskService.connect() $TaskFolder = $TaskService.GetFolder('\') $TaskFolder.gettasks(1) | ? {$_.state -eq 4} Is there any way to identify the process…
Teknowledgist
  • 351
  • 1
  • 3
  • 13
2
votes
4 answers

Is there a way to get the list of all coldfusion scheduled tasks running on different web servers in same network?

I want to find out the details of scheduled tasks running on 5 or 6 coldfusion web-servers, by just writing a single page on one of them. Is there any way to do it? It might be done by reading cron.xml on all of them. I came across with following…
Deepak Yadav
  • 1,724
  • 3
  • 23
  • 38
2
votes
0 answers

Why is gocron executing multiple times?

I am trying to build a service that executes on a cron schedule. I am trying to use gocron (https://github.com/jasonlvhit/gocron). My code looks like below: func taskWithParams(a int, b string) { fmt.Println(a, b) } func GetSchedules() { s…
user3464189
  • 183
  • 1
  • 1
  • 11
2
votes
2 answers

What happens if server crashes, after scheduling task using cron

Say I scheduled a task for time t2 in future t1 < t2 < t3 What if server get crashed at time t1. Will the task scheduled to execute at t2, still executes, if servers restarts before time t2 ( t1 < t < t2 ) ? What if server crashes at t1 and restarts…
chirag jain
  • 419
  • 4
  • 12
2
votes
1 answer

Laravel 5.5 Cron Job proc_open and ArgvInput problems

There is a problem. I am trying to do a cron job for the laravel project. In cPanel php /home/mykaskco/mykask/artisan schedule:run >> /home/mykaskco/public_html/site/log/log.txt when I run this command, In ArgvInput.php line 264: Invalid argument…
T.Arslan
  • 123
  • 8
2
votes
1 answer

Azure timertriggered webjob hangs randomly

I want to schedule a timertriggered method to call other methods but somehow the CronJob method won't run if I use it to call one of my own methods, I simply get this console output: " Found the following functions: ...ProcessQueueMessage…
Rem
  • 73
  • 1
  • 8
2
votes
1 answer

Windows Scheduled Task not working for PHP script

I'm using Windows Server 2003 to try and execute a PHP script every day at 9AM. Here's the command inside of run: "C:\Program Files\Zend\ZendServer\bin\php.exe" C:\Program Files\Zend\Apache2\htdocs\signout\teachernotify.php It's supposed to execute…
Zack Tanner
  • 2,560
  • 1
  • 29
  • 45
2
votes
1 answer

Bash Script: Pause a countdown and resume it by pressing ENTER (or any)

I have a task scheduler which runs a bash script. The task first opens a GIT Bash terminal, an opening message is shown ("The script is about to start in 60 seconds.") and runs a script at the end of that countdown. Now, I would like to improve user…
R99Photography
  • 71
  • 1
  • 2
  • 10
2
votes
1 answer

How to remove scheduling in lumen

Currently i am using PHP 5.6.32 and Laravel Framework Lumen (5.4.6) (Laravel Components 5.4.*). I am able to schedule my task as per the specific time like below $schedule->call('App\Http\Controllers\SubjectController@frickcall', ["request" =>…
2
votes
1 answer

How to process a message in a specific time?

I'm using spring-integration to develop a service bus. I need to process some messages from the message-store at the specific time. For example if there is a executionTimestamp parameter in payload of the message it will be executed in specified…
2
votes
1 answer

Program started manually from Windows Scheduler runs twice

Using Windows Server 2012. I have a Windows Scheduler task that runs a program on 10-th day of each month. This started to happen recently and I don't understand why: when I run it manually from Windows scheduler, it starts twice (see…
user5326167
2
votes
0 answers

Heroku scheduler winter, summer time

I'm deploying RoR application in Heroku. Using, redis, sidekiq and sendgrid my application delivering some emails with daily reports at 7 am CET. For this purpose, I configured 6:00 AM UTC schedule invoking rake task who put the email in the…
Montells
  • 6,389
  • 4
  • 48
  • 53
2
votes
1 answer

Spring Boot Scheduled task not working on docker container

I have a problem with my Spring Boot project running on docker container. Scheduled task doesn't work if I run container as demonized ( docker run -d). When I run image non in background everything is working. Unfortunately, I have to run it as…
Paolo Juve
  • 31
  • 2
  • 3
2
votes
2 answers

Having issues passing counts in my scheduler function

I'm working with the schedule package built by Dan Bader and I'm not sure how to pass a counter into the package. Here is the basic example of how this is used: def job(message="stuff"): print("I'm working on:",…
madsthaks
  • 2,091
  • 6
  • 25
  • 46
2
votes
3 answers

Trigger event using timer on a specific day and time

I am using System.Timer to trigger an event. Currently I trigger it every 1 hour and check if it matches the configured value (day,time). But it is possible to trigger this at a specific time? like suppose on Sunday at 12Am. Windows Task Scheduler…
fireBand
  • 947
  • 7
  • 23
  • 42