A schedule is the arrangement of events in time.
Questions tagged [schedule]
1847 questions
14
votes
4 answers
Spring Boot @Scheduled cron
Is there a way to call a getter (or even a variable) from a propertyClass in Spring's @Scheduled cron configuration? The following doesn't compile:
@Scheduled(cron = propertyClass.getCronProperty()) or @Scheduled(cron = variable)
I would like to…

ltalhouarne
- 4,586
- 2
- 22
- 31
14
votes
1 answer
How expensive are MySQL events?
In my web app I use two recurring events that "clean up" one of the tables in the database, both executed every 15 minutes or so.
My question is, could this lead to problems in performance in the future? Because I've read somewhere -I don't recall…

federico-t
- 12,014
- 19
- 67
- 111
13
votes
2 answers
How to setup node-schedule for every day at 12am
I am using node-schedule to schedule my tasks. Now I need to schedule a job everyday at 12am.
Below given is the code I am using,
var rule3 = schedule.scheduleJob('00 00 00 * * *', function(){
console.log('my test job!');
});
This is not…

Anna
- 973
- 4
- 13
- 26
13
votes
4 answers
Python - Working out if time now is between two times
I'm trying to find the cleanest/most pythonic way of evaluating if "now" is between two times; However; the Start/End times may, or may not, fall across a day boundary- for example (just using simple…

dalgibbard
- 133
- 1
- 1
- 6
12
votes
1 answer
ScheduledExecutorService tasks are running later than expected
I'm running tasks periodically and to provide flexibility for the intervals, the next timeout is calculated at the end of each task, converted to milliseconds from Instant.now(), and scheduled using ScheduledExecutorService#schedule.
This code is…

klonq
- 3,535
- 4
- 36
- 58
12
votes
3 answers
How to schedule my android app to do something every hour
I want my app to access database every hour and read next record from the table then update desctop widget and send notification. I know that there is AlarmManager which I can use to register my Intents but they are deleted when the phone is turned…

Marqs
- 17,800
- 4
- 30
- 40
11
votes
5 answers
how to schedule backup in sql server 2008?
how can I schedule daily backup at 9:00pm in SQL server 2008?

nectar
- 9,525
- 36
- 78
- 100
11
votes
2 answers
How to create a scheduled job in SQL server 2008 via T-SQL?
I want to create a job which deletes records from a database after a period of time has passed. For example I have a field in news table Time Stamp and each month a SQL query runs like a scheduled job against my database and deletes news where the…
user2166535
10
votes
5 answers
Setting up a Laravel cron job in cPanel
I have the following function:
protected function schedule(Schedule $schedule)
{
$schedule->command('email:users')->everyMinute();
}
when I run the command
artisan schedule:run
it sends an email but when I add the following command to the…

Johnny
- 1,685
- 6
- 24
- 42
10
votes
3 answers
Representing complex scheduled recurrence in a database
I have an interesting problem trying to represent complex schedule data in a database. As a guideline, I need to be able to represent the entirety of what the iCalendar -- ics -- format can represent, but in a database. I'm not actually implementing…

David Pfeffer
- 38,869
- 30
- 127
- 202
9
votes
1 answer
Running cron job/task at every hour
Which one is the correct syntax for running a job at every hour?
0 0 * * * *
0 0 */1 * * *
Also how are they both different?

N.A
- 187
- 1
- 1
- 5
9
votes
1 answer
Modified bus scheduling problem in ortools
I want to modify the bus scheduling problem from ortools so as each driver's shift to be consecutive in terms of slots and drivers can share a shift at the same time if needed.
For example, assuming that we have the following half-hour shifts…

azal
- 1,210
- 6
- 23
- 43
9
votes
4 answers
SpringBoot @Scheduled doesn't work
I have a very simple web application for testing the @Scheduled annotation.
The method read() in the class RetrievePrices is annotated with @Scheduled . After deploying the war on Tomcat, I was expecting that the read method should be executed…

user2023141
- 895
- 5
- 17
- 36
9
votes
2 answers
How to schedule Heroku's (maintenance mode or recharge) at specific time of the day?
I'm trying to keep my Heroku (free) application awake during daytime. I don't really care if it sleeps late at night.
The old technique of continuously pinging the app is no longer a valid solution because since 2015, all free-app's have to sleep at…

Cristian Elias
- 115
- 5
9
votes
4 answers
General-purpose distributed scheduling library for Java
I'm looking for some general library for scheduling lots of tasks. The library has to provide ability to split tasks across nodes in cluster, perform load balancing and fault tolerance - so if some node goes down, the tasks for the node has to be…

jdevelop
- 12,176
- 10
- 56
- 112