Skip to content

Commit

Permalink
Document use of allow_concurrent_runs with long-running tasks (zed-…
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswustenberg authored Nov 13, 2024
1 parent 55cd99c commit 90ffd65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ There are two actions that drive the workflow of using tasks: `task: spawn` and
`task: spawn` opens a modal with all available tasks in the current file.
`task: rerun` reruns the most-recently spawned task. You can also rerun tasks from task modal.

By default, rerunning tasks reuses the same terminal (due to the `"use_new_terminal": false` default) but waits for the previous task to finish before start (due to the `"allow_concurrent_runs": false` default).

Keep `"use_new_terminal": false` and set `"allow_concurrent_runs": true` to allow cancelling previous tasks on rerun.

## Task templates

Tasks can be defined:
Expand Down

0 comments on commit 90ffd65

Please sign in to comment.