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

Origin trial activation cron job #3869

Merged
merged 19 commits into from May 16, 2024
Merged

Conversation

DanielRyanSmith
Copy link
Collaborator

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.

today = self._get_today()
# Get all OT stages.
ot_stages: list[Stage] = Stage.query(
ndb.OR(
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Base automatically changed from 2024-05-06_ot-creation-cron to main May 16, 2024 02:43
@DanielRyanSmith DanielRyanSmith merged commit 877b6e1 into main May 16, 2024
7 checks passed
@DanielRyanSmith DanielRyanSmith deleted the 2024-05-11_ot-activation-cron branch May 16, 2024 03:02
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 this pull request may close these issues.

None yet

2 participants