terra-money / warp-contracts

Other
15 stars 14 forks source link

Add terminate_condition to job #34

Closed dev8723 closed 1 year ago

dev8723 commented 1 year ago

Summary

Add a terminate_condition attribute to the job, it's optional and has same type as the condition which is used to decide if a job is executable, terminate_condition decides if a recurring job should be terminated (i.e. stop creating follow up job) when it executed successfully.

If terminate_condition resolves to true or fail to resolve, recurring job will be terminated. Similar to condition resolves to true or fail to resolve, job will be executed.

Test plan

dev8723 commented 1 year ago

@vladjdk Tested by deploying it to localterra using a recurring payment job