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

Update schemas to support async runs #477

Merged
merged 2 commits into from
Jul 31, 2024
Merged

Conversation

rossgray
Copy link
Member

Pull request outline

Here we update the run schemas to support async runs in the pipeline container (which are coming soon).

It no longer makes sense to share the run schemas across the main API and the pipeline container since several params are now specific to one or the other, so it is best to separate them to avoid confusion. For example run_id is an optional parameter for ContainerRunCreate but was inherited by RunCreate, even though it is not used by the main API.

Main changes here are adding async_run and callback_url to ContainerRunCreate - these will be needed for async runs. These are optional so shouldn't cause anything to break

I have kept run_id in RunCreate just for backwards compatibility, in case users are using this unknowingly (we can probably check in the main API if it's being used and deprecate if not)

Checklist:

  • Version bumped

Copy link
Member

@plutopulp plutopulp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah looks good, just a wee question about callback_url

@rossgray rossgray merged commit f680b7e into main Jul 31, 2024
5 checks passed
@rossgray rossgray deleted the update-schemas-for-async-runs branch July 31, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants