Skip to main content
Version: Preview

Create a task

This page walks through a task that answers a question every Monday morning: which coffee gets returned most often, and why.

Before you start​

  • You hold task.editor, or are an admin.
  • You can query at least one source. A task queries with your access, so it can use the tables you can.

Start from a starter, or from scratch​

Open Tasks and select New task. Marmot offers a few ready-made tasks based on what your instance has, such as a weekday freshness check on your most-used tables, or an explanation whenever a schema changes. Pick one and you go straight to the last step to review it.

For the returns check, select Start from scratch.

Choose when it runs​

  1. Select On a schedule, then Repeating.
  2. Set Repeats to Every week, On to Monday and At to 09:00.
  3. Select Continue.

Schedules are in UTC. When a task runs covers the other options, including events.

Say what it should do​

Write the question as you'd ask a colleague: what to find out, what to compare and what to show.

Which coffee gets returned the most, as a share of units ordered?
Compare it with the rest of the range, and say whether its roast or
origin explains it. Show the numbers behind each answer.

Select Continue.

Naming the tables to use saves the agent a few steps, but it isn't required. If your team uses a term in a particular way, say what it means, or write it down in knowledge, which the agent searches.

Choose what it may do​

Leave everything unticked, so the task only reads, and select Continue. To give a task tools from a runner, see Let a task act.

Review and create it​

The Check step of a new task: it runs every Monday at 09:00 UTC, asks which coffee gets returned the most, only reads, and is named Weekly returns checkThe Check step of a new task: it runs every Monday at 09:00 UTC, asks which coffee gets returned the most, only reads, and is named Weekly returns check
  1. Check each part, and select Edit to change it.
  2. Give it a Name, such as Weekly returns check. Left empty, it's named after the first line of the question.
  3. Select Save and try it now to create it and run it straight away, or Create task to wait for Monday.

The task's page shows its latest answer and every run so far. See Read a task's results.

Change it later​

You can edit any part of a task from its page. Saving makes the task run with your access, and the edit page reminds you before you save. Pausing stops a scheduled task from starting until you resume it, and renaming and deleting are in the ⋯ menu.

If something goes wrong​

If no starters are offered for your data, you can't query any tables yet. Ask an admin for query access.

If Run now is refused, the task runs as someone else. Only that person can run it, so save it first to make it run as you.

For runs that fail or don't complete, see Run statuses.