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

How to schedule tasks when computer is off

I have a very basic question. I have built with R a script than can send me reports by email. I then used task scheduler to send those emails on specific times. But now I would like to automate more frequently these scripts (let's say every 2 hours)…
ML_Enthousiast
  • 1,147
  • 1
  • 15
  • 39
2
votes
2 answers

How to schedule a periodic task in Python?

How can I schedule a periodic task in python without blocking? Here is a simple situation. Assume this ticket variable becomes invalid after 2 hours. So I need to fetch it from a serve. ticket = 1 # It expires every 2 hours def…
utengr
  • 3,225
  • 3
  • 29
  • 68
2
votes
2 answers

Best Scheduler for .NET Application?

I'm trying to determine what would be a good Process Scheduler for .NET applications, so far I have only looked into Quartz.NET. Are there any viable alternatives and what are the tradeoffs when using them?
Bongo Sharp
  • 9,450
  • 8
  • 25
  • 35
2
votes
1 answer

why spring @schedule do not work with @Lazy

@Lazy @Component public class ScheduleTest { @Scheduled(fixedRate = 1000) public void doSomething(){ System.out.println("do something"+ new Date()); } } when i set the lazy(value=false),it works.
islandev
  • 33
  • 5
2
votes
2 answers

Yet another Powershell script issue only if scheduled

I read everything I could about Powershell and scheduled task. Tried every bits of what could appears to be a solution. Unfortunately I just can't make PS script apparently run correctly once called from the Windows tasks scheduler. I obviously…
user1011212
  • 39
  • 1
  • 8
2
votes
1 answer

Task Scheduler Win Srvr 2K8 - Run in Foreground/Interactive

Good morning. I have an application that queries a REST source. It needs to run continuously, capturing data which is refreshed every five minutes, without fail. My solution is Task Scheduler, where the app is set to launch on server boot. Once…
user565869
2
votes
1 answer

Python Pandas Cells with different size

I am currently working on a small project (Python 3.6.2) for automated timetable creation based on input I crawl from my college website. For creating the timetable and storing the appointments (and later reorganizing them, to find "better"…
salah2
  • 23
  • 2
2
votes
1 answer

Grunt: How to run a function and then a task and then another function, sequentially, when the functions can not be split in to different tasks?

I am using Grunt to generate a build. I am new to Grunt, javascript, and nodejs, so any new perspectives would be welcomed. Some of the tasks in my Gruntfile rely on plugins (such as 'uglify' for javascript minification), while there are some other…
ffConundrums
  • 765
  • 9
  • 24
2
votes
1 answer

Invoke a method every 5 minutes during working hours/days - Quartz.net

In short, I want to invoke a method at each 5 minutes, but only during the working time. At first I was trying to use Thread.Sleep() and at each invocation, I tried to calculate the amount of sleep time. Somehow, it did not work very well. Here is…
Damn Vegetables
  • 11,484
  • 13
  • 80
  • 135
2
votes
1 answer

Getting return value of a function run by schedule

So I have a function that checks to see if my favorite sports team plays that day: def checkGameDay(): today = str(datetime.date.today()) yyyymmdd = today.replace('-', '') #yyyymmdd = '20171104' #test date that toronto played on (lost 6-4 to…
Jacob Windolf
  • 53
  • 1
  • 8
2
votes
0 answers

Group Managed Service Accounts - issues with Powershell commands when run in scheduled tasks

I've been looking into Group Managed Service Accounts (gmsa) accounts and I've been using them to run scheduled tasks on Server 2012R2 and PowerShell 5.0.10586.117. After I've been using them a while I've encountered some very weird behavior. The…
Paal Braathen
  • 178
  • 1
  • 11
2
votes
1 answer

SQL Syntax error (only when run as scheduled job)

I have just created a scheduled job to run daily, but when the job runs via the scheduler I get the error "Incorrect syntax near 'Item'. [SQLSTATE 42000] (Error 102)". This only happens when the job is run via the scheduler, and works fine when run…
Joe Cast
  • 23
  • 2
2
votes
1 answer

Exact algorithm for task scheduling on N identical processors?

I'm looking for exact algorithm which find the best solution on task schedule in N identical processors. The time of this algorithm is not important, the most important is one best solution (miminum time of all processors when the last task will be…
Przemek Nowak
  • 7,173
  • 3
  • 53
  • 57
2
votes
1 answer

Windows Task Scheduler: IAction.QueryInterface() returns an error I cannot find a definition for

I am attempting to schedule a task (to open an .exe at a specific time) using C++ win32. But at one specific point I am getting an error, I have searched & searched to try & find the definition of this error but I cannot find it? Do you know what…
Sascha
  • 41
  • 7
2
votes
2 answers

Can we create a pool of Spring ScheduledExecutorTask?

I'm trying to see if there's a possibility to create a pool of spring ScheduledExecutor. What I need is a set a ScheduledExecutor tasks which will perform certain task in a regular interval. I was trying to use the following way :
Shamik
  • 1,671
  • 11
  • 36
  • 64