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
1 answer

Laravel withoutoverlapping() isn't working even if name is used for task

I am trying to configure laravel task schedular , I am priting numbers from 0 to infinity to just test why withoutoverlapping() isn't working. My code : protected function schedule(Schedule $schedule) { $schedule->call(function (Request…
Vishal Shetty
  • 1,618
  • 1
  • 27
  • 40
2
votes
1 answer

synchronized block/method and scheduling rules in java concurrency

I'm investigate about synchronized block and scheduling rules. I know that both methods are used to guarantee synchronous data. But I don't understand them, how they work. What are the advantage and disadvantage of synchronized and scheduling…
2
votes
2 answers

spring scheduling a job with fixed delay and initial delay

I am trying o schedule a method call. I want to schedule this method call as soon as server starts and then after every 30 seconds. Below code: @Configuration @EnableScheduling @EnableTransactionManagement public class Schedular implements…
Manglesh
  • 520
  • 1
  • 13
  • 29
2
votes
0 answers

Exe running as a Service instead of a Application

Situation I have a Win 2012 server in which i run an exe which is essentially a GUI. The server restarts every monday so on monday morning i have to log-on to the server using a generic account and manually start the exe. Setup I am planning to…
Ab.
  • 21
  • 4
2
votes
2 answers

looking for a node.js scheduler that wont start if the job is still running

I'm looking for a schedular/ cron for nodejs. But I need an important feature- if the jobs did not finish (when the time for it to start again arrived), I want it to not start/ delay the schedule. For example, I need to run a job every 5 minutes.…
2
votes
1 answer

Scheduling a job weekly with intervals

I want to schedule a job using Quartz Scheduler which will occur weekly but with some intervals. For example let say I want to schedule a job which will occur only on Friday and Saturday but in a gap of 2 intervals. Meaning the next occurrence will…
2
votes
0 answers

spring-batch in @Scheduled is overloading

I have a @Scheduled annotation and inside i'm calling a batch task, like: JobExecution execution = jobLauncher.run(job, param); So, my scheduler is setup initialDelay = 5000, fixedDelay=5000. The problem is that, after 5000 miliseconds, the…
2
votes
2 answers

TPL Dataflow Block with permanent Task/Thread

Stepen Toub mentions in this Channel 9 Video that a *Block creates a task if an item was pushed to its incoming queue. If all items in queue are computed the task gets destroyed. If I use a lot of blocks to build up a mesh to number of actually…
Moerwald
  • 10,448
  • 9
  • 43
  • 83
2
votes
1 answer

Sitecore Task Scheduling With Time Period Exception

I have a number of scheduled tasks set up in Sitecore. Some run every 15 mins others every few hours. An example config:
Fred
  • 5,663
  • 4
  • 45
  • 74
2
votes
1 answer

Luigi passing small data between tasks

Using Luigi I want to do a query on my postgres DB to get a lat/lng coordinate pair then pass that pair onto another task. I have a task QueryPostgres() that takes a SQL string as an input and performs the query. Is there a more concise way of…
Daniel Messias
  • 2,623
  • 2
  • 18
  • 21
2
votes
1 answer

Windows 7 Task Scheduler & Python - Wallpaper doesn't change

I am attempting to run a Python script every five minutes to update a Windows 7 desktop background. It runs perfectly when started from the command-line, but not as a scheduled task. The relevant code: import ctypes # According to MSDN/other…
arboc7
  • 5,762
  • 2
  • 27
  • 30
2
votes
1 answer

How to pass Params to ScheduledMethodRunnable Method

I´m trying to build a method which creates scheduled jobs. These job call a URL. public synchronized void scheduleNewJob(int jobNr, long newRate) throws NoSuchMethodException { ScheduledFuture job = jobsMap.get(jobNr); if (job != null) {//…
Offset
  • 609
  • 1
  • 5
  • 22
2
votes
2 answers

How to schedule a functions to run everyday with NodeJS and Generators?

I need a function to be called every day at a given hour with generators (yields), doing my search I've found out two node modules that enable me to do this, one is node-schedule and the other one is node-cron Node-cron does not seems to support…
Azephiar
  • 501
  • 6
  • 19
2
votes
2 answers

Cron job with aws eb and laravel task scheduling

I would like to know how create a cron with AWS elastic beanstalk and laravel task scheduling. Currently AWS elastic beanstalk propose to create a cron.yaml file but this file take in paramters only the url. However laravel need to execute a…
2
votes
0 answers

Unable to open Excel Com object with powershell in scheduled task (but only while powerpoint is open)

I have had a powershell script that runs hourly as a Scheduled Task and drops some data into an excel spreadsheet. New-Object : Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the…
user2711915
  • 2,704
  • 1
  • 18
  • 17