From 90ffd65a10747ae53d45e2ff3c9b59ec0f30320e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20W=C3=BCstenberg?= Date: Wed, 13 Nov 2024 09:43:17 +0100 Subject: [PATCH] Document use of `allow_concurrent_runs` with long-running tasks (#20539) --- docs/src/tasks.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/tasks.md b/docs/src/tasks.md index 3f81aefc39d7d8313221b3bd61a0652d885303a4..54705d3fd393d2b640e34e29275cade2c68c4451 100644 --- a/docs/src/tasks.md +++ b/docs/src/tasks.md @@ -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: