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

How can Task Scheduler run multiple instances of the exe?

How can Task Scheduler run multiple instances of the exe? Let's say I have a daily schedule to open notepad.exe I hope each day will open a new one, instead it will only open the first one. If I first schdule run a .bat to run the exe, a console…
Led
  • 21
  • 1
  • 1
  • 2
2
votes
0 answers

NoClassDefFoundError: net/javacrumbs/shedlock/core/LockProvider

We try to develop a cron batch . I configured a @SchedulerLock anotation but these not work. This code probabably work with more than 1 node. I read in Github that @SchedulerLock may work with these implement, but not work. I tried too , @TryLock…
miguel lopez
  • 87
  • 2
  • 11
2
votes
1 answer

Error when running C program in task scheduler

I made a C program to get an image offline and save it in a file using fopen/fread/fwrite and libcurl. Everything compiles perfectly fine and I can run it perfectly fine by double clicking the program. But, when I try and set a task on my computer…
jeremy
  • 9,965
  • 4
  • 39
  • 59
2
votes
0 answers

How to schedule multiple tasks on AWS ECS using different env vars?

Let's say I have task definition on AWS ECS and want to schedule it to run as multiple instances with different env variables (~20 parallel tasks). I have some ideas how to do that, but not sure which one is correct. Create multiple task…
2
votes
3 answers

Multithreading Task Library, Threading.Timer or threads?

Hi we are building an application that will have the possibility to register scheduled tasks. Each task has an time interval when it should be executed Each task should have an timeout The amount of tasks can be infinite but around 100 in normal…
NPehrsson
  • 1,548
  • 18
  • 26
2
votes
1 answer

Can the schedule program execute on specific seconds?

I am trying to create a program that can execute on a specific time every day, but I wonder if there's a way to make this program more precise to execute on specific seconds. import time import schedule def func(): …
Laa Laa
  • 69
  • 3
2
votes
1 answer

How to define when my @Scheduled method should be called first time?

The first time @Scheduled method is called when my project just started(it's not fully up).Can i defined when my @Scheduled method should be called first time(not using initial delay).I want all my @Scheduled method to start execution first time…
Nivi
  • 71
  • 5
2
votes
0 answers

How to test @Scheduled in Spring - not SpringBoot

I found many similar topics of this problem, but i still dont have a solution for my case. I want to test my scheduler in Spring 5 application and count how many times it invokes in some time. Here is my scheduler: @Component public class…
2
votes
1 answer

How to test what started a powershell script

I have a PowerShell script that can be started either by running a shortcut on the desktop, OR as a scheduled job from the windows Task Scheduler. Is there any way within the script itself of identifying how it was started? In practice each method…
ConanTheGerbil
  • 677
  • 8
  • 21
2
votes
1 answer

Is there a way to remove a task to the windows task scheduler via python?

I successfully created task in Task Scheduler. I know how to disable it but I cannot find a way completely remove it
2
votes
4 answers

Programmatically creating/deleting tasks for task scheduler

I'm trying to create a task (via C++) that should be executed with highest privileges, although I cannot see in the docs for Task Scheduler how to set that flag (which is available via the Task Scheduler UI). Ideas ?
Robert
  • 2,330
  • 29
  • 47
2
votes
1 answer

Run Windows Task without cmd pop-up

I have a task launched by the task scheduler (python script). I don't want the cmd window appear (python.exe). I can't use SYSTEM user account or "Run whether user is logged on or not", is there any way to hide the cmd pop up ? I can't use SYSTEM…
user9946692
2
votes
5 answers

Replacing a scheduled task with Spring Events

In my Spring Boot app, customers can submit files. Each customer's files are merged together by a scheduled task that runs every minute. The fact that the merging is performed by a scheduler has a number of drawbacks, e.g. it's difficult to write…
Dónal
  • 185,044
  • 174
  • 569
  • 824
2
votes
1 answer

Discord Py - Bacckground tasks for unbanning temporarily banned users, perform unban in specific server

I am trying to make a discord moderation bot, and I am struggling with having temporary bans setup. I have a background task checking to see what date a user was temporarily banned within a csv file and if its been 3 days then unban the user. I have…
secberg
  • 31
  • 4
2
votes
1 answer

Automatically Cancel Spring Task on Exception

I have a Spring Task defined on in spring app context xml:
csviri
  • 1,159
  • 3
  • 16
  • 31