Access, roles and limits
Whose access a task uses
A task runs as the person who last saved it. It can search, read and query only what they can, under the same query access rules, and Marmot checks their access again on every query. If a grant is revoked mid-run, the next query is refused.
Saving a task hands it to whoever saves it. Renaming, pausing and resuming don't. Only the person a task runs as can start it with Run now, so to run someone else's task, save it first.
If that person leaves or is deactivated, the task pauses. Save it to make it run as you, then resume it.
Every query a task runs is in Query audit, recorded with the task's name.
Roles
Grant these across the whole catalog. Admins have all of them.
| Role | Can |
|---|---|
task.viewer | See tasks and their runs |
task.reader | Also read results and what the agent did |
task.editor | Also create, edit, run and delete tasks |
task.approver | Also approve the changes tasks propose |
Connecting an alert source also needs iam.admin, because an alert can start any task.
Limits on a run
Each run stops when it reaches one of these:
| Limit | Default |
|---|---|
| Steps | 25 |
| Queries | 20 |
| Rows per query | 200 |
| Tokens | 300,000 |
| Time | 10 minutes |
A task's page shows its limits under Details.
Plan limits
Your plan sets how many tasks you can have, how many runs a day and how many tokens a month. When you're close to either allowance, the Tasks page shows how much is left. Runs are counted over the last 24 hours, and tokens per calendar month. When either runs out, new runs are refused until the allowance frees up.