-
Notifications
You must be signed in to change notification settings - Fork 414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fear: add onChildFailure option #2710
Conversation
@@ -126,12 +114,13 @@ if rcall("EXISTS", jobIdKey) == 1 then -- // Make sure job exists | |||
-- 2) move the job Id to parent "processed" set | |||
-- 3) push the results into parent "results" list | |||
-- 4) if parent's dependencies is empty, then move parent to "wait/paused". Note it may be a different queue!. | |||
if parentId == "" and parentKey ~= "" then | |||
parentId = getJobIdFromKey(parentKey) | |||
parentQueueKey = getJobKeyPrefix(parentKey, ":" .. parentId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic is not needed anymore as all parent data is saved in parent attribute
local function moveParentIfNeeded(parentData, parentKey, jobIdKey, | ||
failedReason, timestamp) | ||
if parentData['ocf'] then | ||
if parentData['ocf'] == 'fail' then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can possible have a mapping like:
fail: f
ignore: i
remove: r
wait: w
that way we can only compare 1 character
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds good to me
No description provided.