Requeue chunk on error

Viewing 2 posts - 1 through 2 (of 2 total)
  • 4th October 2019 at 11:06 am #22789

    Right now we’re using the below line when finding an error in the onCheckLog function.
    return MTemplateAPI.MTemplateError(2, ‘Error’, MTemplateAPI.MTemplateError.kTemplateErrorTypeError)

    I’m wondering if there’s a different return value we could use in order to requeue the chunk instead of having it error out.
    There are certain types of server errors that work on retry so when coming across those types of errors we would like to retry instead of error out.

    4th October 2019 at 11:14 am #22790
    error = MTemplateAPI.MTemplateError(2, ‘Error’, MTemplateAPI.MTemplateError.kTemplateErrorTypeError)
    error.addErrorAction(MTemplateAPI.MTemplateError.kTemplateErrorRequeueChunk);
    return error
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.