Ga naar inhoud

10 — TASKS & APPROVAL

Schedules

How a scheduled task runsAt the agreed moment exactly one copy of the agent picks the task up, even when several are running. The run has a budget per occurrence. What comes out goes to the delivery channels you chose, and also always stays in the app.ScheduleOne copyRun with budgetDeliveryStays in the app
How a scheduled task runs

A schedule is a goal that comes back on its own. Work you do every week does not need starting every week.

Use this for recurring work: a weekly summary, a monthly check, a daily pass over incoming requests.

Creating a schedule

  1. Go to Planning in the left rail. The page is called Geplande taken.
  2. Give the task a title you will recognise, and describe in the second field what should happen each time.
  3. Under Herhaling choose how often: Elk uur, Dagelijks, Wekelijks, Maandelijks or Cron.
  4. Set a Budget/run (€) — this applies per occurrence, not to all runs together.
  5. Behind Bezorgen via: choose where the result goes.
  6. Press Toevoegen. From then on it runs by itself.

The list shows each task's recurrence, budget per run, delivery channels and when it next runs.

The five kinds of recurrence

  • Elk uur — no time to choose; it runs every hour.
  • Dagelijks — you choose a time.
  • Wekelijks — you choose a day and a time.
  • Maandelijks — you choose a Dag van de maand and a time.
  • Cron — you enter a Cron-expressie yourself, for example 0 8 * * 1 for Monday morning at eight.

Where the result goes

A scheduled task runs while you are not there, so leaving the result waiting in the chat window is rarely useful. Under Bezorgen via: you choose from the channels that work for you.

Which channels you can switch on depends on what you have set up: browser notifications appear only once they are available on this environment, and a webhook or Slack destination only once you have added one. With nothing set up there is a + Slack/webhook link taking you to the right page. See Delivery.

Pausing a schedule

Each task carries a switch reading aan or uit. Switching off keeps the task; deleting is permanent. For a holiday, switching off is what you want.

What cannot happen

When several copies of the agent are running, exactly one picks up the schedule. So a scheduled task cannot run twice or cost twice.

Note

With an empty balance the task does not run. It stays and picks up again as soon as there is balance — you do not have to recreate it.