#Workpool flow

3 messages · Page 1 of 1 (latest)

faint bough
#

If a workpool fails during the argument validation step, will it retry or will it be marked as completed?

Currently, it is being marked as completed, which I feel is incorrect.

Just like there is an onComplete field, there should also be an onError field for when validation fails.

simple vigil
#

The onComplete handler should be getting called for success and failure - is it not currently? That's why I didn't name it onSuccess

faint bough
#

If the argument fails, then onComplete is not called. For instance, if the argument is userID: v.id("user"), but it's passed as a string, the argument validator error appears, but onComplete is not triggered.