Page MenuHomePhabricator

[jobs-api,jobs-cli] Replace already completed one-off jobs when starting a new one
Closed, ResolvedPublicFeature

Description

When starting an one-off job, if there is already a job with that name that's completed and just waiting to get deleted, delete it instead of failing with a "job already exists" error.

Event Timeline

taavi changed the subtype of this task from "Task" to "Feature Request".Dec 12 2023, 7:20 PM
dcaro triaged this task as Medium priority.Feb 21 2024, 4:48 PM
dcaro edited projects, added Toolforge; removed Toolforge Jobs framework.
dcaro moved this task from Backlog to Ready to be worked on on the Toolforge board.
dcaro renamed this task from Replace already completed one-off jobs when starting a new one to [toolforge,jobs] Replace already completed one-off jobs when starting a new one.Feb 21 2024, 4:50 PM
dcaro renamed this task from [toolforge,jobs] Replace already completed one-off jobs when starting a new one to [jobs-api,jobs-cli] Replace already completed one-off jobs when starting a new one.Mar 5 2024, 4:09 PM
Raymond_Ndibe changed the task status from Open to In Progress.Apr 15 2025, 8:24 PM

raymond-ndibe merged https://gitlab.wikimedia.org/repos/cloud/toolforge/jobs-api/-/merge_requests/157

[jobs-api] delete completed one-off job of same name in create_job

group_203_bot_f4d95069bb2675e4ce1fff090c1c1620 opened https://gitlab.wikimedia.org/repos/cloud/toolforge/toolforge-deploy/-/merge_requests/750

jobs-api: bump to 0.0.369-20250423103208-3adcb40a