Add a weekly cadence to the match schedule #15

Merged
mdiluz merged 7 commits from issue-9-advanced-cadence into main 2024-09-22 14:26:39 +01:00

7 commits

Author SHA1 Message Date
39bb8dbf19 Remove unused timedelta import
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 33s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m10s
2024-09-22 14:23:59 +01:00
7491a4d2f8 Account for the cadence in all the messages
Some checks failed
Test, Build and Publish / test (pull_request) Failing after 23s
Test, Build and Publish / build-and-push-images (pull_request) Has been skipped
2024-09-22 14:20:47 +01:00
2ad7ed2ff2 Fix not returning values from safe_write functions 2024-09-22 14:20:34 +01:00
93590d14b7 Ensure a cadence of 0 does not get used
The user surely meant 1
2024-09-22 12:22:54 +01:00
d83f933f1d Only yield matching tasks if the weekly cadence has been hit
All checks were successful
Test, Build and Publish / test (pull_request) Successful in 35s
Test, Build and Publish / build-and-push-images (pull_request) Successful in 1m12s
2024-09-22 12:20:55 +01:00
e9cccefacb Add cadence argument to the /schedule command
This allows setting the cadence, or changing it. When changing the initial start time will be reset
2024-09-22 12:09:59 +01:00
b86aaf7016 Add cadence values to the matchy tasks
cadence - Run this task every "x" weeks
cadence - Unix seconds timestamp for the start of this cadence
2024-09-22 11:57:44 +01:00