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

Using the task scheduler to start a PowerShell script after reboot

So I'm trying to write a powershell script that does the following: Download & install Windows Updates (done) Automatically reboots (done) Checks after the reboot if there are still any updates Goes back to start untill there are no more updates…
Kahn Kah
  • 1,389
  • 7
  • 24
  • 49
2
votes
5 answers

Most effiecient way to display some stats using PHP/MySQL

I need to show some basic stats on the front page of our site like the number of blogs, members, and some counts - all of which are basic queries. Id prefer to find a method to run these queries say every 30 mins and store the output but im not…
gus
  • 765
  • 3
  • 14
  • 26
2
votes
1 answer

A FreeRTOS task suddenly does nothing

I'm developing a real time system with FreeRTOS on an STM3240G board. The system contains some different tasks ( GUI, KB, ModBus, Ctrl, etc . . ) The tasks have different priorities. The GUI seems to display a little slowly. So I use a Profiler…
S.Garber
  • 21
  • 1
2
votes
2 answers

Unable to create task in task scheduler using PowerShell

I am trying to create a task in task scheduler using Powershell. $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 3 0 -1 -1 OS: Windows Server 2012 Here's the script for reference: Set-Location…
Technext
  • 7,887
  • 9
  • 48
  • 76
2
votes
2 answers

design pattern for concurrent task execution with constraints

I have 3 classes of task (I, D, U) which come in on a queue, tasks of the same class must be processed in order. I want tasks to run as concurrently as possible; however there are some constraints: U and D cannot run concurrently U and I cannot…
Justin
  • 4,437
  • 6
  • 32
  • 52
2
votes
0 answers

how to run a scheduler task for every 5 minutes

I am trying to run the task for every 5 minutes using ScheduledThreadPoolExecutor's scheduleAtFixedRate but it is running only for the first time, please let me know what I am doing wrong here. Thanks. @RestController @RequestMapping("/app") public…
user1653027
  • 789
  • 1
  • 16
  • 38
2
votes
3 answers

Unable to run my python script through windows task scheduler

I have installed the anaconda package and been running python notebooks and python scripts easily directly from console. I created a script and want it to run every day at particular time period but it did not work. So I created a simple test file…
Nitin Vijay
  • 435
  • 1
  • 8
  • 14
2
votes
1 answer

How can I run a method every X microseconds without CPU loading (0 < X < 1000)?

I am looking for any timer's design, which can schedule tasks with the period less than 1 millisecond. The most optimal scenario: load 25% of 1 core, when 1 separate thread is used for running this pattern. 1 millisecond is the limit for all the…
2
votes
0 answers

Command Prompt doesn't close after scheduled task runs

I have a job scheduled to run at 9:30 every day using Windows task scheduler. The problem is after it runs, the command prompt stays open. Does anyone know how to get it to close? The full text in the "Add arguments (optional):" field…
Kyle
  • 2,543
  • 2
  • 16
  • 31
2
votes
3 answers

NodeJS - Schedule a very simple task to run at a certain datetime

I am implementing a booking system, and I need to record the concept of the time between the job being accepted and the job starting, and then the duration of the job. I need to move from 'State A' to 'State B' when the start time of the job is…
user533507
2
votes
0 answers

Recurring schedule of a console app with windows task scheduler every 5 minutes

I found here this C++ Code Example: Creating a Task Trigger https://msdn.microsoft.com/en-us/library/windows/desktop/aa446828(v=vs.85).aspx Here we have: pTrigger.wBeginDay =1; // Required pTrigger.wBeginMonth =1; //…
kenhero
  • 95
  • 2
  • 11
2
votes
2 answers

How can I schedule Django background task in Heroku without using Credit card or without money?

I deployed a Django app using free version of Heroku. Now I need to run some background task so I choose django-background-tasks . As per the documentation, I have to run python manage.py process_tasks command after running the project using python…
user7481951
2
votes
3 answers

How to develop a Windows scheduled task?

I need to have a process that compiles daily data into an PDF that will be attached into an email. I have already used MSSQL to send emails in the application being developed and would like to continue to use MSSQL as the email processor. In my…
Eddie
  • 5,050
  • 8
  • 37
  • 46
2
votes
1 answer

Obtaining record count from shared .mdb file using VBS + Task Scheduler

I have searched through some topics where a VBS file is being called via a batch file on Task Scheduler, but it doesn't run. In my case, my VBS file does run on Task Scheduler but my logic for grabbing a record count from a shared database (.mdb)…
Joshua
  • 21
  • 3
2
votes
1 answer

Spring Scheduler not working after uploading war file

I am using spring scheduler for executing some task in my application , it is working fine in my local system after building and uploading war file to the server it is not working. I am using cron expression for executing task at perticular…
Mahabaleshwar
  • 227
  • 1
  • 13
1 2 3
99
100