Skip to content

Commit

Permalink
fix(python): readded saveStacktrace script
Browse files Browse the repository at this point in the history
  • Loading branch information
manast committed Dec 9, 2024
1 parent a922ddf commit a0fcefe
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/commands/saveStacktrace-1.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--[[
Save stacktrace and failedReason.
Input:
KEYS[1] job key
ARGV[1] stacktrace
ARGV[2] failedReason
Output:
0 - OK
-1 - Missing key
]]
local rcall = redis.call

if rcall("EXISTS", KEYS[1]) == 1 then
rcall("HMSET", KEYS[1], "stacktrace", ARGV[1], "failedReason", ARGV[2])

return 0
else
return -1
end

0 comments on commit a0fcefe

Please sign in to comment.