Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Failure Policy: Adds FailurePolicy API field to Job (#52)
* Failure Policy: Adds FailurePolicy API field to Job Based of dapr/proposals#66 Adds a `FailurePolicy` option to the `Job` API to allow re-triggering job which are marked as failed by the caller. Adds two types of policy; `Drop` and `Constant`. `Drop` has no retry policy, `Constant` will constantly retry the job trigger for a configurable delay, up to a configurable maximum number of retries (which could be infinite). Note that the failure policy retry cadence has no effect on the actual Job schedule, meaning if a job was to be retired and eventually succeeded, the Job would continue to trigger at the origin configured schedule. By default, all Jobs will have a `Constant` policy with a delay of 1s. Signed-off-by: joshvanl <[email protected]> * Linter Signed-off-by: joshvanl <[email protected]> * Rename `Constant` FailurePolicy `delay` to `interval` Signed-off-by: joshvanl <[email protected]> --------- Signed-off-by: joshvanl <[email protected]>
- Loading branch information