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
Owner

For #9

This value allows users to set a weekly cadence to run the bot, with a value of 1 representing every week, 2 every other week, and so on. This cadence can be changed with a new /schedule command at the same weekday and hour, and this will reset the start of the cadence to minimize confusion.

For #9 This value allows users to set a weekly cadence to run the bot, with a value of `1` representing every week, `2` every other week, and so on. This cadence can be changed with a new `/schedule` command at the same weekday and hour, and this will reset the _start_ of the cadence to minimize confusion.
mdiluz added 3 commits 2024-09-22 12:24:17 +01:00
cadence - Run this task every "x" weeks
cadence - Unix seconds timestamp for the start of this cadence
This allows setting the cadence, or changing it. When changing the initial start time will be reset
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
d83f933f1d
mdiluz changed title from Add a weekly cadence to the match schedule to WIP: Add a weekly cadence to the match schedule 2024-09-22 12:43:23 +01:00
mdiluz added 3 commits 2024-09-22 14:21:04 +01:00
The user surely meant 1
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
7491a4d2f8
mdiluz added 1 commit 2024-09-22 14:24:09 +01:00
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
39bb8dbf19
mdiluz changed title from WIP: Add a weekly cadence to the match schedule to Add a weekly cadence to the match schedule 2024-09-22 14:26:35 +01:00
mdiluz merged commit 9d3d57ef30 into main 2024-09-22 14:26:39 +01:00
mdiluz deleted branch issue-9-advanced-cadence 2024-09-22 14:26:39 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mdiluz/matchy#15
No description provided.