Questions tagged [schedule]

A schedule is the arrangement of events in time.

1575 questions
120
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,201
  • 2
  • 9
  • 3
76
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
  • 5,797
  • 21
  • 64
  • 98
74
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,064
  • 11
  • 79
  • 125
46
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
  • 760
  • 2
  • 12
  • 25
38
votes
8 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
  • 27,544
  • 92
  • 235
  • 388
36
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.
  • 363
  • 1
  • 3
  • 6
35
votes
23 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
  • 919
  • 5
  • 18
  • 32
30
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,189
  • 3
  • 18
  • 30
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
  • 619
  • 2
  • 8
  • 15
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
  • 5,377
  • 13
  • 47
  • 69
22
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
  • 221
  • 1
  • 2
  • 3
21
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?
breedish
  • 5,331
  • 11
  • 36
  • 57
21
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,418
  • 1
  • 19
  • 27
21
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,419
  • 6
  • 29
  • 51
19
votes
4 answers

IOS - Creating & Using Interval Specific Timers

I am a newbie IOS developer, but I have a good amount of experience in Android development. My question is regarding the creating and use of interval specific timers. In android I could easily make a timer like this: timedTimer = new Timer(); …
user879702
  • 211
  • 1
  • 2
  • 5
1
2 3
99 100