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

Are the .job files created using the C# TaskScheduler library obsolete for Windows 7?

I am using this library http://www.codeproject.com/KB/cs/tsnewlib.aspx to try and schedule tasks for Windows 7. When I create a task the file extension it is saving it as is .job which I think was fine for scheduling tasks in Windows XP. For Windows…
jes9582
  • 253
  • 4
  • 15
2
votes
2 answers

Powershell WPF GUI not visible as scheduled task

I am writing a PowerShell script that displays a WPF GUI to the user. The Task Scheduler is supposed to run this script every day at a certain time. The script works fine when I start it manually, but when I schedule it with the Task Scheduler the…
mvrma
  • 143
  • 1
  • 9
2
votes
1 answer

Scheduling task to run every n seconds, starting at a specific time

When using the schedule package in Python, I would like to schedule a task to start at a specific time, and then run every 10 seconds. I was able to get the task to run every 10 seconds, using schedule.every(10).seconds.do(x) and I also got it to…
Jazziwicz
  • 43
  • 1
  • 1
  • 5
2
votes
1 answer

Lambda Schedule to println from a ArrayList

I am trying to create a timer to print out from an ArrayList at a schedule. But I am receiving this error: Cannot resolve method 'schedule(,int,java.util.concurret.TimeUnit)' Why am I receiving this error and what can I do about…
Josef Lundström
  • 197
  • 2
  • 15
2
votes
1 answer

Allow the end user to schedule task with Spring Boot

I'm using Spring Boot and I want to allow the end user to schedule task as he wants. I have a Spring Boot REST backend with a Angular frontend. The user should be able to schedule (with a crontab style syntax) a task (i.e. a class' method backend…
Eric
  • 375
  • 7
  • 19
2
votes
1 answer

Getting Error Code -2147216615 in Task scheduler 2.0

I am using the Task Scheduler managed library available from https://taskscheduler.codeplex.com/. I am trying to RegisterTask using the below code. ts.RootFolder.RegisterTaskDefinition(Curr_Task.Name, Curr_Task.Definition,…
JDoshi
  • 315
  • 4
  • 12
2
votes
2 answers

Spring Scheduled tasks: specifying time zone in XML configuration

Is it possible to achieve the time zone setting in XML configuration as done in Java with the following annotation? @Scheduled(cron = "0 0 8,20 * * *", zone = "GMT-3") I can't see any other attributes in XML definition, but perhaps there's a…
gvasquez
  • 1,919
  • 5
  • 27
  • 41
2
votes
0 answers

I have a working powershell script that hangs sending mail when run with the Task Scheduler

I have a paperless system for mileage reimbursement sheets. We have had some issues with people submitting multiple sheets and to help supervisors check for that I created a PowerShell script that does an SQL query and creates a text file with all…
btg
  • 21
  • 4
2
votes
1 answer

Run function only once for specific time Golang

I need to set a task for specific time with Golang. For example job has ending time so I need to change some rows on table. I searched for it but I could only find periodic tasks with Cron. I don't want to set a cron to check database in every 5…
Mert Serin
  • 289
  • 6
  • 20
2
votes
2 answers

Scheduled task PHP alternatives

I'm working on an existing custom eCommerce PHP application which is currently running a very resource intensive CRON every 15 minutes. The gist of it is: Customers can set up complex filters for products they are interested in, and receive emails…
Adam
  • 21
  • 2
2
votes
2 answers

python scheduling - How can I avoid the infinite loop?

First, my code is here: import schedule # see https://github.com/dbader/schedule import crawler def job(): print("Start my scheduled job...") cw.run() if __name__ == "__main__": cw = crawler.crawler() print("Initial crawling...") …
Yonggoo Noh
  • 1,811
  • 3
  • 22
  • 37
2
votes
2 answers

Scheduled Tasks stopped running

Not sure what caused this, but all of a sudden the scheduled tasks have stopped firing on our server, and read as "not run". We are running ColdFusion 10. To test, I created a simple scheduled task, a CFM file that sends an email to me, but it won't…
Cmaso
  • 1,095
  • 1
  • 10
  • 23
2
votes
2 answers

Creating A Scheduled Task on PHP Running Under IIS

I'm fairly new to PHP. I need to run a function on my PHP site on a daily basis. I have seen posts on how to do this under Linux, but I'm running the PHP site on Windows Server 2012 under IIS. How can I create a PHP function and then run it at a…
FlyFish
  • 491
  • 5
  • 22
2
votes
2 answers

How to make database transactions in scheduled tasks in Spring Boot 1.4.2.RELEASE

Can anyone give me an example of how to call DB transactions in scheduled tasks by using Spring Boot 1.4.2.RELEASE, please? Thank you very much. I used Spring Boot 1.4.2.RELEASE to create a scheduled task through @Scheduled(fixedRate =…
2
votes
1 answer

Register scheduled task from XML source

I have created a XML in which I have mentioned all the required parameters necessary for creating a Scheduled task. Now I have successfully imported the XMl through PowerShell script but I can't find the right way to call the XML as the parameter of…
Ricky
  • 35
  • 1
  • 1
  • 7
1 2 3
99
100