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

feat(scheduler): Add simple tokio-cron-scheduler job #21

Conversation

evanpurkhiser
Copy link
Member

Just an example of what our celery-beat style task might look like

Just an example of what our celery-beat style task might look like
@evanpurkhiser evanpurkhiser requested review from wedamija and a team June 3, 2024 22:18
pub async fn run_scheduler() -> Result<(), JobSchedulerError> {
let scheduler = JobScheduler::new().await?;

let checker_job = Job::new("1/10 * * * * *", |_uuid, _l| {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does 1/10 * * * * * mean?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question, just copied this from their docs. It's once every 10 seconds

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah thanks, sorry wasn't familiar with that format

@evanpurkhiser evanpurkhiser merged commit 2227d70 into main Jun 4, 2024
2 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/feat-scheduler-add-simple-tokio-cron-scheduler-job branch June 4, 2024 05:04
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.

3 participants