From f1e9e47065d92479680a471b4b2eb342557c9091 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Wed, 24 Jan 2024 16:51:05 -0500 Subject: [PATCH 1/2] Clear additional fields when requeueing jobs --- parts/21-mutate.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parts/21-mutate.sh b/parts/21-mutate.sh index ec60c07..0d11a99 100644 --- a/parts/21-mutate.sh +++ b/parts/21-mutate.sh @@ -532,7 +532,12 @@ mutate_restart-jobs() { ## [--commit] <-|job_id [job_id [...]]> : Restart some j read -r -d '' QUERY <<-EOF UPDATE job - SET state = 'new' + SET + state = 'new', + destination_id = null, + destination_params = null, + job_runner_name = null, + job_runner_external_id = null WHERE job.id in ($job_ids_string) EOF From d1267824937bcd8a86456f3e2e652f43deeb4bd4 Mon Sep 17 00:00:00 2001 From: Nate Coraor Date: Mon, 29 Jan 2024 14:18:10 -0500 Subject: [PATCH 2/2] Also clear job.info when requeueing --- parts/21-mutate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parts/21-mutate.sh b/parts/21-mutate.sh index 0d11a99..b5fcda7 100644 --- a/parts/21-mutate.sh +++ b/parts/21-mutate.sh @@ -537,7 +537,8 @@ mutate_restart-jobs() { ## [--commit] <-|job_id [job_id [...]]> : Restart some j destination_id = null, destination_params = null, job_runner_name = null, - job_runner_external_id = null + job_runner_external_id = null, + info = '' WHERE job.id in ($job_ids_string) EOF