Questions tagged [schedule]

A schedule is the arrangement of events in time.

1847 questions
22
votes
9 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,401
  • 4
  • 18
  • 31
21
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
  • 877
  • 1
  • 11
  • 29
21
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
  • 1,010
  • 2
  • 12
  • 33
19
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,754
  • 2
  • 22
  • 49
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
19
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,414
  • 6
  • 20
  • 43
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
  • 14,656
  • 11
  • 42
  • 52
19
votes
6 answers

How can I run an async function using the schedule library?

I'm writing a discord bot using discord.py rewrite, and I want to run a function every day at a certain time. I'm not experienced with async functions at all and I can't figure out how to run one without using "await." This is only a piece of my…
Michael Leonard
  • 240
  • 1
  • 3
  • 8
19
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
  • 957
  • 3
  • 16
  • 31
19
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
  • 829
  • 3
  • 13
  • 25
18
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,951
  • 7
  • 42
  • 69
16
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
  • 365
  • 2
  • 5
  • 15
16
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
  • 345
  • 1
  • 4
  • 10
16
votes
2 answers

TypeError: the first argument must be callable

I am using python and schedule lib to create a cron-like job class MyClass: def local(self, command): #return subprocess.call(command, shell=True) print "local" def sched_local(self, script_path,…
4m1nh4j1
  • 4,289
  • 16
  • 62
  • 104
15
votes
2 answers

Event Scheduler in PostgreSQL?

Is there a similar event scheduler from MySQL available in PostgreSQL?