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

Does Shuttle support crontab? #372

Closed
piloer opened this issue Oct 5, 2022 · 3 comments
Closed

Does Shuttle support crontab? #372

piloer opened this issue Oct 5, 2022 · 3 comments
Assignees

Comments

@piloer
Copy link

piloer commented Oct 5, 2022

No description provided.

@chesedo
Copy link
Contributor

chesedo commented Oct 31, 2022

Not officially, but it should be possible to add a custom cron service. Docs for creating a custom service should be coming out soon

@morlinbrot
Copy link
Contributor

morlinbrot commented May 2, 2023

Will take this over as part of the Shuttle Batch 2.0

Create a new service implementation in services that allows a user to create a shuttle-crontab service. The service should define a struct that holds a fn() -> Future and a cron::Schedule. The service implementation should then take this struct and use it to run the fn on the defined schedule as long as the service remains running.

@chesedo started this a long time ago when our code was quite different, but it may be useful to take a look at it: https://github.com/shuttle-hq/shuttle/tree/feat/cron-example/examples/custom/cron

Requirements

  • Create a new service that allows users to deploy a crontab service on shuttle

@jonaro00
Copy link
Member

jonaro00 commented Jun 8, 2023

Closed in favor of #909

@jonaro00 jonaro00 closed this as completed Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants