Questions tagged [schedule]

A schedule is the arrangement of events in time.

1847 questions
128
votes
7 answers

Scheduling R Script

I have written an R script that pulls some data from a database, performs several operations on it and post the output to a new database. I would like this script to run every day at a specific time but I can not find any way to do this…
ETD
  • 1,281
  • 2
  • 9
  • 3
85
votes
4 answers

How do I schedule a task to run at periodic intervals?

I was trying some codes to implement a scheduled task and came up with these codes . import java.util.*; class Task extends TimerTask { int count = 1; // run is a abstract method that defines task performed at scheduled time. public…
Manish Basdeo
  • 6,139
  • 22
  • 68
  • 102
80
votes
10 answers

How to schedule a build in Jenkins?

How do I schedule a Jenkins build such that it would be able to build only at specific hours every day? For example to start at 4 PM 0 16 1-7 * * I understand that as, "at 0 minutes, at 4 o'clock PM, from Monday to Sunday, every month", however it…
deadfish
  • 11,996
  • 12
  • 87
  • 136
65
votes
2 answers

crontab run every 15 minutes between certain hours

Is this correct scheduled to run between 07:00 and 19:00 at every 15 minutes? */15 07-19 * * * /path/script
catalin
  • 946
  • 6
  • 14
  • 31
42
votes
15 answers

Laravel "No scheduled commands are ready to run."

I've set up the following Laravel commands on the App\Console\Kernel: protected function schedule(Schedule $schedule) { $schedule->command('command:daily-reset')->daily(); $schedule->command('command:monthly-reset')->monthly(); } Then, on…
user1832945
40
votes
10 answers

Android close dialog after 5 seconds?

I'm working on an accesibility app. When the user wants to leave the app I show a dialog where he has to confirm he wants to leave, if he doesn't confirm after 5 seconds the dialog should close automatically (since the user probably opened it…
lisovaccaro
  • 32,502
  • 98
  • 258
  • 410
40
votes
25 answers

Java Spring @Scheduled tasks executing twice

I have a simple test method here that is set to run every 5 seconds and it does, but looking at the System.out you can see it appears to be doing something odd. @Scheduled(cron="*/5 * * * * ?") public void testScheduledMethod() { …
KS1
  • 1,019
  • 5
  • 19
  • 35
38
votes
4 answers

EJB @Schedule wait until method completed

I want to write a back-ground job (EJB 3.1), which executes every minute. For this I use the following annotation: @Schedule(minute = "*/1", hour = "*") which is working fine. However, sometimes the job may take more than one minute. In this case,…
Phil P.
  • 383
  • 1
  • 3
  • 6
34
votes
2 answers

@Schedule annotation run every few minutes (or seconds)

I would like to try to use the @Schedule annotation in the following way: public class MyTestServlet extends HttpServlet { private static JcanLogger LOG = JcanLoggerFactory.getLogger(ServiceTestServlet.class); @EJB CronService…
cscsaba
  • 1,279
  • 3
  • 20
  • 31
28
votes
1 answer

How to insert schedule with date and time in Emacs org-mode

When I insert a schedule with C-c C-s in Emacs org-mode, it always inserts a date like this: * TODO write product documents SCHEDULED: <2013-10-25 Fri> while what I want is this: * TODO write product documents SCHEDULED: <2013-10-25 Fri 11:34>…
Leo
  • 1,710
  • 2
  • 26
  • 29
24
votes
6 answers

How to interrupt or stop currently running quartz job?

I have some tasks that are executed with the help of Java Quartz Jobs, but I need to stop some tasks by some condition in my code. I read that this can be done via InterruptableJob. But i didn't understand in what way i should do it?
user253202
23
votes
3 answers

Can the EJB 3.1 @Schedule be configured outside of the application code?

How can I configure a schedule intervals: @Schedule(persistent=true, minute="*", second="*/5", hour="*") outside of the application code? How can I configure it in ejb-jar.xml? Can I configure it outside the application (kind of properties file)?
Moran
  • 231
  • 1
  • 2
  • 3
23
votes
6 answers

How do you estimate an agile project up front?

When working on fixed price software development projects, I frequently find myself having to estimate the total number of hours a project will take after the price is set, but before the work is started (or VERY early on in the development). …
carter
  • 629
  • 3
  • 8
  • 15
23
votes
7 answers

How to schedule automatic backups in teamcity?

We are using Teamcity 6.5.6 professional version, which gives me the option to run a backup but I do not see any option to schedule it to a particular time. I am not sure if this version of teamcity even supports scheduled backups. If it is not…
kranthi
  • 1,519
  • 6
  • 29
  • 52
22
votes
1 answer

Identify and cancel an alarm send to an AlarmManager

If I use the AlarmManager to schedule an alarm (a PendintIntent which should be send), how can I identify that alarm later to cancel it? Can I cancel all alarms scheduled by my app?
cody
  • 6,389
  • 15
  • 52
  • 77
1
2 3
99 100