From 3c34e713aa343d56c7cea00a9c998b06dbf411d6 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Wed, 19 Apr 2017 22:09:45 -0400 Subject: [PATCH] 11470: Fix accidentally cleared fields during job_task update. Updating with a Task struct had the effect of clearing job_uuid, created_by_job_task_uuid, and parameters fields, and resetting sequence to 0. --- sdk/go/crunchrunner/crunchrunner.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/go/crunchrunner/crunchrunner.go b/sdk/go/crunchrunner/crunchrunner.go index 5d7e10be4b..36343d3df3 100644 --- a/sdk/go/crunchrunner/crunchrunner.go +++ b/sdk/go/crunchrunner/crunchrunner.go @@ -254,10 +254,10 @@ func runner(api IArvadosClient, } err = api.Update("job_tasks", taskUuid, map[string]interface{}{ - "job_task": Task{ - Output: "", - Success: true, - Progress: 1.0}}, + "job_task": map[string]interface{}{ + "output": "", + "success": true, + "progress": 1.0}}, nil) return nil } -- 2.30.2