Skip to content

Pattern for accumulating job data for batch process #2416

Answered by manast
SaucyJack asked this question in Q&A
Discussion options

You must be logged in to vote

Ideally, if a batch failed to POST for any reason, the associated queue jobs would get failed so that we can retry them. But, since we have to use moveToCompleted to fetch the next job (after the first iteration), I can't keep the jobs and fail them if there is an error posting a batch.

You can pass "true" as last argument of "moveToComplete" if you do not need to fetch the next job. Is that enough to solve your use case?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@SaucyJack
Comment options

@manast
Comment options

@SaucyJack
Comment options

Answer selected by SaucyJack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants