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

Bash script to create a scheduled task

I wrote a bash script to create a scheduled task and run a django app. I am using Git Bash as my terminal, and I have been able to manually run the commands in the snippet posted below with success. However, when I run bash script with these same…
Arny
  • 23
  • 3
2
votes
1 answer

Binding two different TaskSchedulers to a Spring Boot Application

I have the following problem: I have multiple @Scheduled annotations in my application defining cron-jobs, which may run at the same time. As far as I understood the standard behavior is that each cron-job is executed by one single-threaded…
2
votes
0 answers

Scheduling (cancellable) django tasks in future

I have a Django site which allows users to create events that will start at a particular time on a particular date. Crucially, they can also change the start date/time of the event whenever they like, right up the time it is due to start. When the…
bodger
  • 1,112
  • 6
  • 24
2
votes
1 answer

Sequential processing within a Spark batch

I have a question about sequential processing within a Spark batch. Here is a stylized version of the question I am trying to get answer on to keep it simple. import org.apache.spark.sql.SparkSession val spark = SparkSession .builder() …
2
votes
2 answers

How to schedule tasks in PHP ? (Storing & running techniques)

Hi all I am using Zend framework for my PHP project. Basically I have few actions that I want to run automatically. I will be using a cron job to do the trick. The cron job will run a php script file. Till now everything seems normal. Now I have…
Songo
  • 5,618
  • 8
  • 58
  • 96
2
votes
1 answer

Laravel prevent schedule:run from adding key to cache

Whenever my application runs php artisan schedule:run and successfully schedules some jobs onto any of my queues, it creates a cache entry for itself in the following format: laravel:framework/schedule-{SCHEDULE_HASH} where SCHEDULE_HASH is a random…
Halfpint
  • 3,967
  • 9
  • 50
  • 92
2
votes
3 answers

Windows 10 Schtasks.exe Delete After Final Run Error

I am attempting to use schtasks to run a once off task that will simply execute a program. Here is what it looks like: schtasks /Create /SC ONCE /TN "OpenCalc" /TR "C:\Windows\System32\calc.exe" /ST "11:59" /SD "09/12/2018" This works. It creates a…
2
votes
2 answers

How to run cron job at users time zone using spring boot

We have users from all over the world using application. Our requirement is to run cron job at 12 am daily at users time zone and only for users in that time zone. How can this be achieved using spring boot??
rajadilipkolli
  • 3,475
  • 2
  • 26
  • 49
2
votes
0 answers

SparkSQL Number of Tasks

I have a Spark Standalone Cluster (which consists of two Workers with 2 cores each). I run an SQLQuery which joins 2 dataframes and shows the result. I have some questions regarding the above simple example. val df1 = sc.read.text(fn1).toDF() val…
2
votes
1 answer

Schedule PHP task running in IIS

Does anyone have a simple solution for scheduling PHP tasks running in IIS? I have a php script which backs up our databases and emails to our backup address on a separate server. I have admin access to the server. Thanks!
Chris
  • 2,340
  • 6
  • 40
  • 63
2
votes
0 answers

Android background service, best way to schedule task every 10 seconds if device is awake

Background I am writing an Android Service that always running repeatedly perform a simple task if device is awake I am able to make the service start on device boot. But I am confused about task scheduling. Creteria: I want to schedule the task…
somebody4
  • 505
  • 4
  • 14
2
votes
1 answer

Scheduling tasks/messages for later processing/delivery

I'm creating a new service, and for that I have database entries (Mongo) that have a state field, which I need to update based on a current time, so, for instance, the start time was set to two hours from now, I need to change state from CREATED ->…
ishaan
  • 1,951
  • 1
  • 19
  • 31
2
votes
2 answers

How to schedule different messages to be sent on a linux shared server

I'm developing a tool for my company, that in very broad strokes is intended to message users some information (a link to a picture) if they decide they want to be notified when it comes online. If it were just alerting them when it's online is…
Helwar
  • 157
  • 1
  • 1
  • 11
2
votes
2 answers

airflow stops scheduling dagruns after task failure

I am confused by what airflow does if a dagrun fails. The behaviour I want to achieve is: Regular triggers of the DAG (hourly) Retries for the task If a task fails n retries, send an email about the failure When the next hourly trigger comes round,…
Dan
  • 45,079
  • 17
  • 88
  • 157
2
votes
1 answer

local shiny app crashes after temporary directory gets deleted

I'm running a shiny app locally on my Windows machine that auto-runs every day using a batch file. I recently ran into an issue lately where the R tmp directory /tmp/RtmpXXXXX is removed and the application fails: Warning in file(open = "w+b",…