Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kill previous task #10841

Open
1 task done
Gioppix opened this issue Apr 22, 2024 · 2 comments
Open
1 task done

Kill previous task #10841

Gioppix opened this issue Apr 22, 2024 · 2 comments
Labels
discoverability Feedback for discoverability of features, settings, etc feature [core label] tasks

Comments

@Gioppix
Copy link

Gioppix commented Apr 22, 2024

Check for existing issues

  • Completed

Describe the feature

"allow_concurrent_runs" should provide the possibility to kill the previous task, instead of just opening a new one or waiting. This is very useful for programs that continuously run (e.g. asking for user input).
As of now the only solution I found is manually terminating a run to allow for the new one in the queue to execute.

If applicable, add mockups / screenshots to help present your vision of the feature

"allow_concurrent_runs": "allow_multiple" | "wait" | "terminate"

@Gioppix Gioppix added admin read feature [core label] labels Apr 22, 2024
@SomeoneToIgnore
Copy link
Contributor

Such behavior is available, but might not be obvious enough:

"allow_concurrent_runs": true,
"use_new_terminal": false

This combination will allow not to wait for previous tasks before spawning the new one, but forced to reuse the terminal of the previous task, which should result in the previous terminal (and the task running in it) being killed, and the new task instantly started.

@Moshyfawn Moshyfawn added discoverability Feedback for discoverability of features, settings, etc tasks and removed triage labels Apr 22, 2024
@Gioppix
Copy link
Author

Gioppix commented Apr 22, 2024

@SomeoneToIgnore yeah "concurrent" seems very different from killing the previous task. Thanks tho it works great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discoverability Feedback for discoverability of features, settings, etc feature [core label] tasks
Projects
None yet
Development

No branches or pull requests

4 participants