Skip to content

note important information about intervals#320

Open
opyate wants to merge 2 commits intorq:masterfrom
opyate:document-the-different-intervals
Open

note important information about intervals#320
opyate wants to merge 2 commits intorq:masterfrom
opyate:document-the-different-intervals

Conversation

@opyate
Copy link
Copy Markdown

@opyate opyate commented Dec 20, 2024

As per @mojeto #163 (comment)

I feel that this would clear up some issues around rq-scheduler usage, where folks would set a < 1 minute job interval, but it still running once a minute, and being confusing. Possible also issues with seeming "drift"?

Perhaps a maintainer can give good reasons for the following directives, then I can amend the doc:

  • the job interval has to be a multiple of the scheduler interval
  • the job interval has to be greater than the scheduler interval

@coredumperror
Copy link
Copy Markdown

coredumperror commented May 9, 2025

This would definitely have helped me to realize why my once-per-minute jobs, scheduled with a crontab, were running at seemingly random seconds after each minute, instead of on the minute. It was because the polling was being done at 60-second intervals after the container booted up, and that boot-up time was a random number of seconds after the minute.

I fixed it by setting rq-scheduler's polling interval to 1 second.

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

Successfully merging this pull request may close these issues.

2 participants