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

Need help in creating the scheduling service

I need to create a scheduling service which will poll the database after a specific time interval, pick the required objects and send it to a WCF service to perform the required task. Shall I use the windows worker thread? or is there any other…
Ram
  • 11,404
  • 15
  • 62
  • 93
2
votes
3 answers

Which way is the best for running background processes?

On the server-side: I need a way to execute some tasks in the background, frequently and start it at a specific time. My programming language is Python for the back-end(Sanic Framework), VueJs for the front-end, MongoDB as main DB and the Redis for…
Ali Hallaji
  • 3,712
  • 2
  • 29
  • 36
2
votes
1 answer

Python Aps Scheduler run in interval between two weekdays with time and schedule two job

I am trying to run a job between monday hour 0 to friday 19 and add second job scheduled in friday 20. It's not working, Not sure when combining multiple trigger for cron & interval works this way. from apscheduler.triggers.combining import…
2
votes
1 answer

ImportXML with Google Sheet and Auto Refresh Every Minute

I have the script below which is importing some XML data in a google sheet called prices. Everything works fine except that I have set up a time driven trigger to run every minute but the data won't get updated. The trigger seems to work fine, as I…
2
votes
1 answer

Execute exe in a schedule from Azure Devops

Is there a way to execute an exe on a scheduled basis (once/twice every day of the week) in azure devops. Not able to find the right task to achieve this.
ACP
  • 34,682
  • 100
  • 231
  • 371
2
votes
2 answers

how to set a node-schedule job that it doesn't destroy after server reboot in node js

I made a scheduled job by the following code: const schedule = require('node-schedule'); scheduleAuto1A = schedule.scheduleJob(time, function(){ // do some }); a user enter the cron job time and it have to work until the user cancel it. but…
developer
  • 170
  • 2
  • 12
2
votes
1 answer

Can the minimum time to schedule tasks be found without brute force?

If I have a list of integers representing the time it takes for a task to be completed and I have x workers that can only work on one task until the time it takes to complete is up, can I find the minimum time it could possibly take in a best case…
2
votes
1 answer

Laravel Schedule withoutOverlapping() is not working with runInBackground()

I'm trying to setup schedule for my commands in /app/Console/Kernel.php and found out that withoutOverlapping() doesnt work with runInBackground() This works without overlaps: $schedule ->command('test:update') ->withoutOverlapping(); This…
2
votes
1 answer

Asp.Net - Scheduled Task using IHostedService

I'm working on an ASP.NET web application written in C# and hosted in an Azure virtual machine using IIS 10 as a web server. I have to schedule a background task to run once a day. To achieve this I created the following DailyTask class: public…
El_Merendero
  • 603
  • 3
  • 14
  • 28
2
votes
1 answer

Error: Memory Exhausted (limit reached?) R code Windows Task Scheduler

I am attempting to use Windows Task Scheduler to automatically run R code daily using instructions from another StackOverflow question (Scheduling R Script). Window Task Scheduler correctly opens Rscript.exe and begins running the code; however,…
2
votes
2 answers

Schedule a task to work on 15th and the last day of the month in ruby

I have defined a rake task to work on the 15th and last day of the month at 8 am in schedule.rb file. I just wanted to confirm if I have done it the right way. Please have a look and suggest it. run this task at 8am on 15th of every month every '0 8…
user12763413
  • 1,177
  • 3
  • 18
  • 53
2
votes
0 answers

Scheduling queries in google big query not working (kept scheduled but not running)

I am working with big query (quite new with this tool actually). I made a query that runs properly (even in a view). But when i schedule it, so it can run every day, it simple doesn't run. As i show in the image below, it simple keeps as programmed…
2
votes
1 answer

Where do Powershell windows go when opened via a startup script?

I have set up a task manager task to run a script on my VM startup which runs multiple commands needed to get my React app with an express/mongodb backend running. Does anyone know what happens to the Powershell windows which are opened because when…
Robert Templeton
  • 139
  • 1
  • 2
  • 9
2
votes
1 answer

commercial .net task scheduler component that supports callbacks or events

I am aware of quartz.net and the codeplex task scheduler managed wrapper project. They have a rather decent learning curve and R&D phase to get it to work as per our specs. Also packaging them & configuring with our runtime installer is another…
Gullu
  • 3,477
  • 7
  • 43
  • 70
2
votes
2 answers

Use a scheduled task to move files into specific YY-MM folders based on file name

I am trying to move thousands of files into YYYY-MM folders, using a scheduled task which runs every night. The files are currently stored here: C:\Users\USER\Desktop\New folder I want them to be stored like this: C:\Users\USER\Desktop\New…
Naz
  • 525
  • 2
  • 9
  • 21