Questions tagged [schedule]

A schedule is the arrangement of events in time.

1847 questions
4
votes
1 answer

Which algorithms can be used for generating timetables/schedules?

I have a question about scheduling. I need to make a timetable generator for appointments. this is the current situation. P1 has an appointment A with P2. P3 has an appointment B with P4. and so on... Appointment A takes about 15 minutes Appointment…
Nico Liu
  • 845
  • 2
  • 9
  • 14
4
votes
2 answers

How to pass current date in constant(json text) in aws eventbridge while calling lambda

I have created a event bridge rule which is scheduled to trigger lambda with the following json input. but in the date value I want to pass the current date(sys date) dynamically everytime the schedule is triggered. {"date": "2019-08-12"}
4
votes
1 answer

Celery beat scheduled tasks stop being triggered after a while

Context: I'm using Celery 4.4.0 with python 2. My system does the same job every second. I deploy my celery with Gcloud Kubernetes. I have 1 pod of Redis as a broker & 2 replica pods of the celery app. The celery pods are identical: they use a same…
4
votes
3 answers

How do I schedule a function to run everyday at a specific time in discord.py?

I want the bot to run a defined function everyday. I did some research and then I was able to write this: def job(): print("task") schedule.every().day.at("11:58").do(job) while True: schedule.run_pending() time.sleep(1) but this…
user13878676
4
votes
2 answers

Cron - schedule job every 30 minutes, starts half past full hour

Can I schedule job in cron format so that it runs every 30 minutes from 6:30 am to 11:30, every day? How?
Przecinek
  • 41
  • 1
  • 2
4
votes
3 answers

Laravel Scheduler don't run commands, but they can be run manually

I have those 3 commands to run in…
ThRnk
  • 575
  • 2
  • 19
4
votes
1 answer

Schedule to run a method Daily 8 AM in ASP.NET MVC

how Call Method in ASP.NET MVC For example, in one method, bring out a list of people who are born and send them a congratulatory message.
A.R.SEIF
  • 865
  • 1
  • 7
  • 25
4
votes
1 answer

Is there a python module for the Linux "at" task scheduler

Lest I reinvent the wheel .... again: Is there a python interface, API or module for the standard linux "at" task scheduler? I have tried searching the internet but searching for the word "at" is a tad bit useless :-) My intention is to have a…
LewTwo
  • 83
  • 8
4
votes
3 answers

Run Google Cloud Function at a specific time

I'd like to schedule the execution of a Cloud Function to a specific time. It should be run only once. I basically have a function "startTask" which modifies some data in the Firestore database. After X seconds (the time is passed to the startTask…
leNic
  • 41
  • 2
4
votes
1 answer

Changing start dates of schedules to optimize resources

I have a bunch of work that needs to be performed at specific time intervals. However, we have limited resources to do that work, each day. Therefore, I am trying to optimize the start time dates (start time dates can only be moved forward not…
4
votes
2 answers

python schedule jobs with different timezones

I want to schedule a python function to run everyday at a certain time for a list of customers with different timezones. This is basically what I want to do: import schedule import time def job(text): print("Hello " + text) def…
skybunk
  • 833
  • 2
  • 12
  • 17
4
votes
2 answers

Generate closest teams based on employee schedules C#

I am given a csv of employee schedules with columns: employee ID, first last name, sunday schedule, monday schedule, ... , saturday schedule 1 week schedule for each employee. I've attached a screenshot of a portion of the csv file. The total file…
obl
  • 1,799
  • 12
  • 38
4
votes
3 answers

How would you build this daily class schedule?

What I want to do is very simple but I'm trying to find the best or most elegant way to do this. The Rails application I'm building now will have a schedule of daily classes. For each class the fields relevant to this question are: Day of the…
allesklar
  • 9,506
  • 6
  • 36
  • 53
4
votes
2 answers

Testing schedule library python - Time and Events

Let's suppose I am using the schedule library on a Ubuntu remote server to trigger an event every 3 days. Code should look something similar to this: import schedule import time def job(): print("I'm…
Juanvulcano
  • 1,354
  • 3
  • 26
  • 44
4
votes
0 answers

Modern readable alternative to Cron Format

Is there any modern (JSON, XML, etc...) readable alternative to the Cron Schedule Format? I understand that, for instance 0 0 12 1/1 * ? * is very powerful and can cover a lot of special cases, but it cannot be read by someone, who has not worked…
Harry Berry
  • 318
  • 1
  • 10