Skip to content

Commit

Permalink
Update interactive task documentation to work with docker-worker & ge…
Browse files Browse the repository at this point in the history
…neric-worker (#329)
  • Loading branch information
bhearsum authored Dec 22, 2023
1 parent e48440f commit 8e99d1c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions docs/task-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,24 @@ To start an interactive task, follow these steps:

5. Reduce the maxRunTime to a best guess at how long you'll need the task and worker running for. (We pay for every minute a worker runs - so they should not be kept running, eg: overnight.)

6. Adjust the payload to simply run bash (instead of a full pipeline step). Eg:
6. Adjust the payload to simply run bash and sleep (instead of a full pipeline step). For docker-worker tasks use something like:
```
command:
- /usr/local/bin/run-task
- '--firefox_translations_training-checkout=/builds/worker/checkouts/vcs/'
- '--'
- bash
- '-c'
- 'sleep 7200'
```

For generic-worker tasks (those needing a GPU), use:
```
command:
- - bash
- '-c'
- 'sleep 7200'
```

(docker-worker tasks have an `image` section in the payload)

7. Click "Create Task"

After a few minutes you should be able to get a shell (a link will show up in the tab when it's ready).

0 comments on commit 8e99d1c

Please sign in to comment.