-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 24 28 +4
Lines 1520 1810 +290
Branches 177 211 +34
==========================================
+ Hits 1520 1810 +290
☔ View full report in Codecov by Sentry. |
40e17ed
to
c897e32
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and clear - I had one thought which might save about 5 lines of code! (But might change the order - pehaps that's why you've written it that way...)
seen.add(el) | ||
return ret | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this equiv to:
def unique(x):
return list(set(x))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that does not preserve ordering, otherwise yes that's the way to do it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! not familiar with yachron, couldnt find the @daily
and @weekly
options for schedule
tag but im sure you know what youre doing with that!
https://github.com/josiahcarlson/parse-crontab - the cron parsing comes from this module, and is interpreted the same way as: https://crontab.guru/#@daily I'll have a quick go firing this up in anger and see if it works... |
Pretty close in the end, but the jobs failed because I was mounting things inconsistently between the backup and the schedule modules - fixed that in 04fbe5a and it works |
This PR adds a scheduler to run on the clients. I've not tried this out yet in anger, but will do so on Friday.
With this PR we can run a long-running process on production/production2 that will ship data to annex2, running daily.
Some things here:
timezone
argument to yacron to make the cron commands interpretable against the local time even when the container is running in utc (the default).Don't be afraid about the diff - this is 168 lines of code changed within
src/
, the rest is tests and config