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
4 answers

Ways to perform scheduled tasks - Windows / .NET

My issue is pretty simple. I have an application that should be executed automatically once a day. I have no prior experience with this kind of scenario (some time ago I worked with IBM Control-M but guess that it is way more complete, complex and…
born to hula
  • 1,274
  • 5
  • 18
  • 36
2
votes
3 answers

How to schedule a database task?

Background: I created an application that measures a weight from a scale and saves the information in MS SQL server database. In the database, I want to save a record for the actual weight for every day as historical, and I don’t know what I have to…
Akrem
  • 5,033
  • 8
  • 37
  • 64
2
votes
0 answers

'No Current Record' Error when Outputting Report to PDF from Batch File or Task Scheduler

The Problem I'm using a scheduled task to open an MS Access database, run a macro to email a report in PDF format, and then close the database. The report is relatively basic and the macro simply uses the EmailDatabaseObject action to export & email…
Lee Mac
  • 15,615
  • 6
  • 32
  • 80
2
votes
1 answer

Spring Boot: Unable to access the request scope bean in Spring Scheduler

In my Spring Boot application, i've a Scheduler task which executes for every one hour. In the scheduler method trying to access the request-scope bean. Always getting the exception org.springframework.beans.factory.BeanCreationException. Here is…
2
votes
2 answers

Vapor 4 Scheduled Jobs With Heroku

I have a Vapor 4 application where I'm using queues to create a scheduled job. This particular test job just prints logs every five minutes. When I run the project locally everything works as expected. However, when I deploy to Heroku things start…
Richard Witherspoon
  • 4,082
  • 3
  • 17
  • 33
2
votes
3 answers

Make a program which will be started by a scheduled task and must not show any window

I've a small c# application which does some sync between two libraries. This has to run regularly, and the use of scheduled has been choosed. So for now everything is working fine, except one thing, when the task is scheduled, I got a console…
J4N
  • 19,480
  • 39
  • 187
  • 340
2
votes
2 answers

Java task scheduling for task items in MySql database with Multi-threading

I am writing a task scheduling module in java spring to handle task items which are stored in Mysql database. Schema structure of the Task table: ID | TASK_UUID | TASK_CONTENT(VARCHAR) | CREATED_TS | UPDATED_TS | STATUS(NEW/PROCESSING/COMPLETE) I…
Kaguya
  • 21
  • 2
2
votes
1 answer

Laravel perform scheduled job on database

This is somewhat a design question for my current laravel side project. So currently I have a table that stores a status value in one column and the date when that status should be altered. No I want to alter that status value automatically when the…
Mathmeeeeen
  • 119
  • 1
  • 11
2
votes
2 answers

how to restart Hangfire server after reboot server IIS 8.5

I created a webapp with blazor serverside with a scheduler in my app using Hangfire. It's hosted in a IIS 8.5 on windows server 2012. I already did all the settings to make sure my blazor app dont stop and dont recycle (idle=0,startmode,Regular Time…
2
votes
1 answer

Send GIF image in mail by cron job

I want to send an email with PHP script which include a gif image in it. It executed successfully(send mail with GIF Image) when I run it via browser URL, but when I run it via cron job/ schedule task it send only the mail body without GIF…
Shalini
  • 131
  • 1
  • 10
2
votes
2 answers

How to run a job in Spring Boot between 9:30 am to 4:00 pm every 5 mins?

Currently I have the following 2 cron expressions configured in the application but the job runs past 4:00 pm. As show in the application logs below I see logger statements even after 4:00 pm. Not sure why. application.properties #Starts at 9:30 AM…
Nital
  • 5,784
  • 26
  • 103
  • 195
2
votes
1 answer

Get more info from Scheduled Tasks in powershell

Is there a way to view all ScheduledTask properties from PowerShell without having to open up the not so user friendly taskschd.msc: I manage to create the job fine with New-ScheduledTask and Register-ScheduledTask, but I'm unable to view the…
MortenB
  • 2,749
  • 1
  • 31
  • 35
2
votes
1 answer

How can I unit test a method containing scheduled executon?

I have a simple restarting Runnable: static void launchThreads(){ ScheduledExecutorService exec = Executors.newSingleThreadScheduledExecutor(); try { exec.scheduleWithFixedDelay(new Runnable() { @Override …
Gangnus
  • 24,044
  • 16
  • 90
  • 149
2
votes
1 answer

Snowflake Tasks are executing but cannot find them in query history

My tasks in snowflake are executing fine, I can run the below and get QueryID's for each instance that runs SELECT * FROM TABLE(INFORMATION_SCHEMA.TASK_HISTORY(TASK_NAME=> 'TitanLoadSuccessVsFail')) But when I look at Query History for the…
2
votes
0 answers

Task Scheduler IID_ILogonTrigger undefined

I found a sample code from MSDN which triggers notepad.exe on user logon, but as i'm trying to compile the program using g++ task.cpp -o task.exe -lole32 -loleaut32 -luuid in this code block ILogonTrigger *pLogonTrigger = NULL; hr =…
Ahmed Can Unbay
  • 2,694
  • 2
  • 16
  • 33