feat: add durable relative task delays and outage recovery regression
This commit is contained in:
@@ -64,6 +64,9 @@ func NormalizeSubmit(in SubmitInput) (SubmitInput, error) {
|
||||
if in.TaskTimeoutMS > 30*24*60*60*1000 {
|
||||
return in, fault.Invalid("task_timeout_ms exceeds 30 days")
|
||||
}
|
||||
if in.DelayMS >= in.TaskTimeoutMS || (in.DelayMS != 0 && in.AvailableAt != nil) {
|
||||
return in, fault.Invalid("delay_ms must be less than task_timeout_ms and cannot be combined with available_at")
|
||||
}
|
||||
if in.RecoverySafety == "" {
|
||||
in.RecoverySafety = pulse.RecoveryReconcileOnly
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user