Skip to content

Commit

Permalink
Merge pull request #178 from theoway/adding_no_retry_mechanism
Browse files Browse the repository at this point in the history
`noRetry` in response body to stop retrying in case of non-recoverable failure.
  • Loading branch information
pierotofy authored Feb 4, 2022
2 parents dc32c0a + 36782b4 commit b076c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/taskNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ module.exports = {
if (req.files && req.files.length > 0){
res.json({success: true});
}else{
res.json({error: "Need at least 1 file."});
res.json({error: "Need at least 1 file.", noRetry: true});
}
},

Expand Down

0 comments on commit b076c6f

Please sign in to comment.