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
3 answers

Scheduled task not able to write files on an external server

I'm having problems with a scheduled task running in a windows 2003 server scheduled task Task is running under the nt authority/system account sending files to another windows2003 server in same domain. Machine where task is executed runs under a…
user81333
  • 23
  • 1
  • 3
2
votes
0 answers

R: Scheduling Tasks in Base R

I am working with the R programming language. I am interested in learning how to schedule jobs in R - for instance, suppose I want to run the script below every Monday at 12:00 AM: ## my_script (create some random numbers, put them in a data…
stats_noob
  • 5,401
  • 4
  • 27
  • 83
2
votes
1 answer

Are there any platform agnostic ways to schedule tasks using PHP?

I'm currently looking for a way that I can build a scheduling system that could run scripts at a certain date and/or time, and do it in such a way that it doesn't care what operating system it's living on. I know with linux/unix, I can add enteries…
canadiancreed
  • 1,966
  • 6
  • 41
  • 58
2
votes
0 answers

How to give relative path for a file in xml file

I am basically scheduling a task in task scheduler through xml file. My question is how we give relative path to the exe which is scheduled as a task in task scheduler. how can we give relative path to xml under . because i want to run…
Slazenger
  • 43
  • 5
2
votes
0 answers

ADODB.Connection VB6: Error -2147023878 Illegal operation attempted on a registry key that has been marked for deletion

Main Error Message: ADODB.Connection VB6: Error -2147023878 Illegal operation attempted on a registry key that has been marked for deletion. (Exception from HRESULT: 0x800703FA) How it happened? We have a Task scheduler running a process that…
simpleorchid
  • 145
  • 1
  • 10
2
votes
0 answers

Laravel schedule command to run for all tenants

I have setup multitenancy in my laravel project. I use laravel 7.x. Now, I want to make task scheduler for some commands and that commands need to run for all tenants. I have two schedule command called in app\Console\Kernel.php.
Cloud
  • 1,004
  • 1
  • 18
  • 47
2
votes
4 answers

How to schedule a task in Angular

I have to create a component in angular that clean the data in the database (via a service call) every hour and displays the last clean time in HTML. Couple of question When we route from one component to another, does the component get auto…
Dan
  • 651
  • 1
  • 14
  • 31
2
votes
1 answer

Golang Robfig cron AddFunc does not dynamically run the jobs

I am working on a cron jobs service using robfig/cron module. Issue I am facing is it is not able to dynamically run the cron job functions. For example, refer to the code below mapp := map[int]string{1: "one", 2: "two", 3: "three"} cr :=…
Mohamad Arafat
  • 573
  • 1
  • 5
  • 24
2
votes
1 answer

How to find turnaround and response times for rr and fifo as well as what is the difference?

I'm a bit stuck at this question. From what I found the: TT = Burst - waiting or exit-arrival RT = start time - arrival In the book there is an example: P1 P2 P3 arr 0 0 0 comp. 10 10 10 I wrote…
2
votes
1 answer

Register-ScheduledTask : Access is denied. (HRESULT 0x80070005)

I'm trying to create a new Windows Scheduler Task, which will run some sync job. The things are: I want to use a separated service account, not Administrator I want to run a job not to get tied with service account's password change. In Windows…
Evgeniy
  • 49
  • 1
  • 6
2
votes
1 answer

Schedule REINDEX table CONCURRENTLY job

Aurora Postgress 12.6 Purpose: schedule to rebuild all indexes. what I did is create a function that calls all tables names and reindex concurrently and put the function in pg_cron but it gives me the error "SQL Error [25001]: ERROR: REINDEX…
user3706888
  • 159
  • 2
  • 11
2
votes
2 answers

Shutil.move() not working with Task Scheduler despite working manually

I'm working on using Task Scheduler to run this program every morning. The python program works fine when I run it manually, but throws a FileNotFoundError when done with Task Scheduler. Here is a snippet of the code: original =…
2
votes
2 answers

How to schedule on-demand tasks on aws serverless

We are developing a serverless application on AWS. Currently, we have a use case in which we want a user to be able to create configurations for schedules to send them daily, weekly or monthly reports at a specific time on the day on which the…
2
votes
0 answers

Why does CFSchedule fail with a null pointer error

I am running CFSchedule to get my scheduled task added to the admin and no matter what I do it keeps coming back with the message "The system has attempted to use an undefined value, which usually indicates a programming error, either in your code…
John P
  • 87
  • 7
2
votes
2 answers

How differently does our await keyword behave inside the for await of loop than in a normal async function?

Here's a simple async function: async function f(){ let data = await (new Promise(r => setTimeout(r, 1000, 200))); console.log(data) return data + 100; } f() console.log('me first'); Here's what's going to happen in…