Skip to main content
Version: Preview

When a task runs

Every task has one trigger, which you choose when you create it. Whatever the trigger, you can also start a task by hand with Run now.

By hand​

For a question you only ask now and then, let it run by hand: start it with Run now on its page whenever you want an answer.

On a schedule​

A task can run once at a date and time, or repeat every hour, day, weekday, week or month. The form shows when it will run next.

For anything else, open More options and enter a cron expression, such as 30 6 * * 1,4 for 06:30 on Mondays and Thursdays.

Schedules are always in UTC, and a task can't run more often than every 5 minutes. If several runs were missed, it catches up with one run, not one for each.

When something happens​

A task can also start when something happens. Pick where the events come from and which ones count, then narrow them down if you like, for example to one provider, one pipeline or one alert severity.

The catalog can start a task when an asset is added or removed, or when its schema, lineage, description, owners or tags change. Marmot watches what it knows about your assets, not the rows inside them.

A pipeline can start a task when an ingestion run finishes. Choose whether that's when it succeeds, when it fails, or either.

An alert can start a task when it starts firing or when it resolves. Connect your alerting system first: see Start tasks from your alerts.

A runner can report problems in the system it serves, such as a Kubernetes workload that keeps crashing. See Let tasks act on a Kubernetes cluster.

Repeats​

The same problem is often reported more than once. You can start the task every time, or only again after a wait of 5 minutes to a day. Alerts and runner events wait 30 minutes by default.

Events during a run​

You also choose what happens to events that arrive while the task is running. By default the task waits, then runs once more for everything that arrived. It can also run once for each event in turn, or ignore events until it finishes.

If more than 50 events arrive in a minute, Marmot holds them and asks you on the task's page whether to run them or discard them.

Next steps​