Questions tagged [schedule]

A schedule is the arrangement of events in time.

1575 questions
19
votes
4 answers

How do you use FogBugz with an Agile methodology?

"Evidence-based scheduling" in FogBugz is interesting, but how do I use it w/ an Agile methodology?
Kevin Wong
  • 13,690
  • 11
  • 40
  • 49
18
votes
2 answers

Pass parameters to schedule

How can I pass parameters to schedule? The function I want to get called: def job(param1, param2): print(str(param1) + str(param2)) How I schedule it: schedule.every(10).minutes.do(job) How can I pass a parameter to do(job)?
Adityo Setyonugroho
  • 737
  • 1
  • 7
  • 25
18
votes
3 answers

How to use sched_getaffinity and sched_setaffinity in Linux from C?

I am trying to: Run 16 copies concurrently with processor pinning (2 copies per core) Run 8 copies concurrently with processor pinning (2 copies per core) and flipping processor core to the furthest core after certain function say function 1…
Basmah
  • 815
  • 3
  • 13
  • 24
17
votes
1 answer

Possible to change ejb parameter at runtime for @Schedule annotation?

Probably a silly question for someone with ejb experience... I want to read and change the minute parameter dynamically for one of my EJB beans that uses the Java EE scheduler via the @Schedule annotation. Anyone know how to do this at runtime as…
simgineer
  • 1,528
  • 2
  • 21
  • 38
17
votes
3 answers

Running a Java method at a set time each day

I'm relatively new to Java and I've pick up a project to work on. However, I've run into a block. I need a method to run at a certain times throughout the day. I've done quite a bit of searching but I can't find anything that seems like it would…
Austin Moore
  • 1,348
  • 5
  • 19
  • 42
16
votes
3 answers

Weekly repeating tasks emacs org-mode

I want to track habits using org-mode. For example, I want to do exercise 3 times every week. Is there a way to schedule 3 times a task every week irrespective of the date in org-mode?
18bytes
  • 5,521
  • 7
  • 40
  • 64
16
votes
1 answer

Spring @Scheduler parallel running

I have the following 3 classes: ComponantA package mytest.spring.test.spring; import org.apache.log4j.Logger; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; @Component public class…
hublo
  • 776
  • 2
  • 9
  • 26
16
votes
2 answers

What is the concept of vruntime in CFS

I have been reading about Linux Kernel and CFS scheduler in the kernel. I came across vruntime (virtual runtime) that is the core concept behind CFS scheduler. I read from “Linux Kernel Development” and also from other blogs on internet but could…
iammurtaza
  • 860
  • 3
  • 12
  • 28
15
votes
1 answer

Java Spring do scheduled task at a specific time of specific timezone

I'm developing a website with Spring and Hibernate (the website is about stock trading). At about 12 AM everyday, I need to cancel all orders. Currently my solution is using a scheduled task that runs every hour:
Liberty
  • 311
  • 3
  • 7
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
  • 11,157
  • 16
  • 58
  • 108
13
votes
2 answers

Event Scheduler in PostgreSQL?

Is there a similar event scheduler from MySQL available in PostgreSQL?
13
votes
1 answer

How to config cron value of @Scheduled in application.properties

I am using spring-schedule like this. @Component @EnableScheduling public class ScheduledTasks { @Autowired private ISomeJob someJob; /** * do a Job every 5 minutes. */ @Scheduled(cron = "0 0/5 * * * ?") public void…
John
  • 285
  • 2
  • 4
  • 13
13
votes
2 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,376
  • 2
  • 19
  • 30
13
votes
5 answers

Algorithm to find meeting time slots where all participants are available

Came across this question in an interview blog. Given free-time schedule in the form (a - b) i.e., from 'a' to 'b' of n people, print all time intervals where all n participants are available. It's like a calendar application suggesting possible…
NPE
  • 1,201
  • 4
  • 16
  • 27
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,332
  • 4
  • 31
  • 58