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

What is the difference between ”current“ and “prev” in the “__schedule” function, why not use current directly?

From the kernel source code: static void __sched notrace __schedule(bool preempt) { struct task_struct *prev, *next; unsigned long *switch_count; struct rq_flags rf; struct rq *rq; int cpu; cpu =…
Joeys
  • 21
  • 4
2
votes
1 answer

MS Exchange 2010: cmdlet Not Executing Correctly as a Scheduled Task

I've been using a Scheduled Task and the New-MailboxExportRequest cmdlet to export my organization's mailboxes to .PST archive files each night for awhile now. Unfortunately, the ExportRequests are not removed after the archive operation completes…
2
votes
1 answer

ColdFusion 2018 scheduled tasks not working

We have recently began migrating to ColdFusion 2018 Enterprise, but have found that the scheduled tasks do not work. Although the relevant cfm file works if run in the browser on the same server, if we try and run it as a scheduled tasks then it…
jj2
  • 916
  • 1
  • 8
  • 19
2
votes
1 answer

How to create a Teamcity build trigger that will run job B once per week, after job A finished, where A runs daily

I have some Teamcity jobs created. One of those jobs, let's call it job A, has a schedule trigger, running daily at 7:00 am. Now I have another one, job B, that I want to run once per week, but only after job A ran. Given that job A takes about 30…
knee pain
  • 600
  • 3
  • 19
2
votes
0 answers

wait the BlockingScheduler till the previous job completes its execution

Function is scheduled for every 5 seconds and if functions takes more than 5 seconds to execute it skips the job. How to handle the skipping of job and wait the schedular till the previous job completes its execution. Code: from…
2
votes
1 answer

how to schedule a task to run at repeated intervals of 1 week or 2 weeks, in a java desktop/web application

I am working on an application to track search engine rankings of a web page. What I want to do is, once a user starts the software, he enters the start date and time for one-time execution of the code to check search engine rankings, then every…
Arvind
  • 6,404
  • 20
  • 94
  • 143
2
votes
0 answers

Multiprocessing in Python Script Executed by Windows Task Scheduler

I've got a Python script that uses multiprocessing that I need Windows Task Scheduler execute at 6:45 am daily. The reason it is using multiprocessing is so that if the script stalls and has not completed after an hour, the process is…
2
votes
1 answer

Python Apscheduler not stopping function execution

I'm trying to execute my face detection function and use Apscheduler to run the function only between certain time. I can start the function correctly but the end_time parameter doesn't seem to work at all, the function just keeps on running until…
lr_optim
  • 299
  • 1
  • 10
  • 30
2
votes
0 answers

DB is overwhelmed by background periodic tasks in Django App

We have a Django application that has to consume a third-party API periodically to fetch a large amount of data for a set of users. The tasks are performing fine and fullfill their purpose. But after a period of time, we start getting too many…
dstrants
  • 7,423
  • 2
  • 19
  • 27
2
votes
0 answers

Plesk Schedule Task Empty File

I want to create a cron job from scheduled tasks in Plesk. I am facing a weird problem with it, I have created the task and my command runs successfully if I press "Run now". If I let it runs automatically every 1 hour the file is empty. Here is my…
stelios
  • 71
  • 5
2
votes
3 answers

Task Scheduler Error Message: 80041318, Whats it mean?

I have search & searched MSDN to find the definition of the HRESULT error with the value 80041318 but I cannot find it. I am working in C++ Win32 attempting to schedule a task that will execute when the current user logs in. The function…
user593747
  • 1,484
  • 4
  • 32
  • 52
2
votes
1 answer

Windows schedules task creation issue with powershell

I'm trying to script windows scheduled task creation with powershell, where the schedules tasks call powershell scripts that are in a directory that contains a space. So i need to create with a /tr argument like powershell.exe -noninteractive…
pmcgrath
  • 823
  • 2
  • 9
  • 21
2
votes
1 answer

Access to the scheduled jobs in Quartz when on many instances

Imagine I have a microservices to schedule a reminder. It will be scaled to 3 instances of that microservice and more if need. They share 2 endpoints -> POST(SheduleReminder) and POST(UpdateSheduleReminder) The first request will be scheduled on…
2
votes
0 answers

on what basis does apscheduler triggers job?

I am building an interval based scheduler using apscheduler. Here's the code: from flask import Flask import time from apscheduler.schedulers.background import BackgroundScheduler def job1(): print('performed job1') def job2(): …
2
votes
3 answers

scheduling events in Python3

I have 4 python scripts that I've mostly run from command-line. I've been trying to schedule them, but so far I haven't found a good way to do this. I have some requirements on how this all should work. My scripts and what they do: script number 1;…
utheros
  • 21
  • 1