Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: set up cron workflow to pull mimic report and open pr #283

Open
gosuto-inzasheru opened this issue Nov 21, 2024 · 3 comments · May be fixed by #296
Open

ci: set up cron workflow to pull mimic report and open pr #283

gosuto-inzasheru opened this issue Nov 21, 2024 · 3 comments · May be fixed by #296
Assignees

Comments

@gosuto-inzasheru
Copy link
Contributor

waiting on mimic to come up with a final deadline every epoch, so we know that the report is ready

@gosuto-inzasheru
Copy link
Contributor Author

mimic confirmed a deadline of thursdays 9am utc. should still implement some failsafe to make sure there is data, and revert in case there isnt

Image

@gosuto-inzasheru gosuto-inzasheru linked a pull request Dec 5, 2024 that will close this issue
2 tasks
@gosuto-inzasheru gosuto-inzasheru self-assigned this Dec 5, 2024
@gosuto-inzasheru
Copy link
Contributor Author

@Tritium-VLK you said you know how to do a biweekly cron schedule? because i cant find a way

best discussion i came across is this one: https://stackoverflow.com/questions/350047/how-to-instruct-cron-to-execute-a-job-every-second-week

best solution there i could find is: 0 0 1-7,15-21 * 2, which however fails as soon as a month has three biweekly days (eg monday or tuesday in december 2024)

i still believe the better way to go is to have a weekly cron, with logic in the python that checks if it already ran last week or not

@Tritium-VLK
Copy link
Member

Yeah I think you're right. Wasn't thinking a day showing up 5 times in a week.

I can't recall the code I did it in, but thinking about it more, I just ran weekly, then took the week number and continued without doing anything if it was even. Let me know if you want me to find a code example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants