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

[New engine] Syncify flow engine #13246

Merged
merged 11 commits into from
May 5, 2024
Merged

[New engine] Syncify flow engine #13246

merged 11 commits into from
May 5, 2024

Conversation

jlowin
Copy link
Member

@jlowin jlowin commented May 4, 2024

Sister PR to #13234

This PR uses the Starlette test client for synchronous ephemeral API access. I tried a variety of approaches, including running the ASGI app in a background thread, but all created occasional and odd issues with deadlocks in CI. Ultimately this approach is simple, straightforward, and works well.

I did have to port a one-line bugfix (encode/starlette#2376) into our vendored code for how the TestClient joins URLs to the base URL, as it was dropping the /api suffix and failing to resolve.

Temporarily disables new engine tests on tests/tasks.py while we work through taskrunners.

@jlowin jlowin requested a review from a team as a code owner May 4, 2024 02:52
Copy link

netlify bot commented May 4, 2024

Deploy Preview for prefect-docs-preview ready!

Name Link
🔨 Latest commit 64be9d3
🔍 Latest deploy log https://app.netlify.com/sites/prefect-docs-preview/deploys/6636d39279e6750008ab5191
😎 Deploy Preview https://deploy-preview-13246--prefect-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -458,3 +458,23 @@ async def run_task_async(
if return_type == "state":
return run.state
return run.result()


def run_task(
Copy link
Member

Choose a reason for hiding this comment

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

nice

@jlowin jlowin merged commit 39d6d88 into main May 5, 2024
58 checks passed
@jlowin jlowin deleted the flow-engine branch May 5, 2024 01:26
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.

2 participants