diff --git a/src/commands/includes/updateJobFields.lua b/src/commands/includes/updateJobFields.lua index 9d9057f21a..d2c5f2944d 100644 --- a/src/commands/includes/updateJobFields.lua +++ b/src/commands/includes/updateJobFields.lua @@ -2,7 +2,7 @@ Function to update a bunch of fields in a job. ]] local function updateJobFields(jobKey, msgpackedFields) - if msgpackedFields then + if msgpackedFields and #msgpackedFields > 0 then local fieldsToUpdate = cmsgpack.unpack(msgpackedFields) if fieldsToUpdate then redis.call("HMSET", jobKey, unpack(fieldsToUpdate))