Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Start / stop Cron from a micro #275

Answered by abdelhai
xu2xulim asked this question in Help
Discussion options

You must be logged in to vote

deta supports setting and "unsetting" a cron from the cli: https://docs.deta.sh/docs/micros/cron#set-cron
you can however write your own logic which could depend on some data/flag stored in base which you could update via the micro endpoint.

this works because cron works with other frameworks: https://docs.deta.sh/docs/micros/cron#cron-and-http

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@xu2xulim
Comment options

@abdelhai
Comment options

@xu2xulim
Comment options

@abdelhai
Comment options

Answer selected by xu2xulim
Comment options

You must be logged in to vote
2 replies
@xu2xulim
Comment options

@jnsougata
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants