ServiceRollbackConfig constructor
const
ServiceRollbackConfig({})
Creates a new ServiceRollbackConfig.
delay Delay between task rollbacks (ns|us|ms|s|m|h). Defaults to 0s.
failureAction Action on rollback failure: pause | continue. Defaults to pause.
maxFailureRatio Failure rate to tolerate during a rollback. Defaults to 0.0.
monitor Duration after each task rollback to monitor for failure (ns|us|ms|s|m|h). Defaults to 5s.
order Rollback order: either 'stop-first' or 'start-first'. Defaults to stop-first.
parallelism Maximum number of tasks to be rollbacked in one iteration. Defaults to 1
Implementation
const ServiceRollbackConfig({
this.delay,
this.failureAction,
this.maxFailureRatio,
this.monitor,
this.order,
this.parallelism,
});