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
Origin trial activation cron job #3869
Conversation
internals/maintenance_scripts.py
Outdated
today = self._get_today() | ||
# Get all OT stages. | ||
ot_stages: list[Stage] = Stage.query( | ||
ndb.OR( |
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.
Why not use the IN operator?
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.
I didn't think to use it, but I think it reads better anyway. 🙂 Interestingly, after reading some more, it seems using the IN and OR operators are functionally identical. I still think it's easier to interpret the meaning using the IN operator.
a71f680
to
066630a
Compare
This implements a new cron job that will detect origin trials that are scheduled for trial activation and send those activation requests to the to the origin trials API. This cron job will not be formally implemented until endpoint access has been landed on the origin trials API.