Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I schedule a job that starts at minute 5 and runs every 10 minutes #590

Open
ponders opened this issue Jun 27, 2023 · 2 comments
Open

Comments

@ponders
Copy link

ponders commented Jun 27, 2023

documentation suggests schedule.every(10).minutes.at("05:00") but schedule whines that "Invalid time format for a minutely job (valid format is :SS)". I tried changing to at(":300") (five minutes as seconds) but that also doesn't match the required format either.

@aquib-sh
Copy link

aquib-sh commented Jul 5, 2023

@ponders Did you try time.sleep for 5 mins and then schedule the job every 10 mins?
What you want is to start the job after 5 mins and then it must run every 10 mins if I understood your question correctly

@mohana-martin
Copy link

@aquib-sh That completely defeats the purpose of using a scheduler.. Might aswell sleep for every 10 minutes.

@ponders I believe you could follow/combine the examples: Run a job once and Run a job every x minutes, where the first job runs in 5 minutes and schedules the actual "every-10-minute" job. Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants