This is a library for scheduling your flow function as a cron job in test.flows.network.
```rust use scheduleflows::cronjobevoked; use slackflows::sendmessageto_channel;
pub fn run() { if let Some(body) = cronjobevoked(String::from("50 8 * * *"), String::from("cronjobevoked")) { sendmessagetochannel( "myworkspace", "mychannel", String::fromutf8lossy(&body).intoowned(), ); } } ```
In run()
the cron_job_evoked
will create a cron job that will run daily at 8:50 UTC.
When the cron job is evoked, the run()
will be called again. We get the body then send it to the Slack.
The whole document is here.