Link Search Menu Expand Document

Slate provides APIs to notify users, publish standup to Slack etc. One way to schedule these notifications and publishing time is via crons.

To publish standup submissions you can use the following approach:

  • Kubernetes crons (in case you went with K8s based installation).
  • Calling publish standup API via a cron or manually to publish to Slack channel.

Kubernetes crons

Follow the doc here to setup required crons for Kubernetes cluster deployment.

Generic crons

1. Cron to notify users

30 7 * * 1-5 curl --location --request GET 'https://<host>/api/notify_users/<team-name>/' --header 'Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

This will set a cron to notify users every Monday to Friday at 7:30 UTC.

2. Cron to publish standup submissions

30 8 * * 1-5 curl --location --request GET 'https://<host>/slack/publish_standup/<team-name>/' --header 'Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

This will publish all the standup submissions every Monday to Friday at 8:30 UTC to the Slack channel configured.