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

DX-1547: sync/async serve with duplication #8

Merged
merged 3 commits into from
Jan 13, 2025
Merged

DX-1547: sync/async serve with duplication #8

merged 3 commits into from
Jan 13, 2025

Conversation

yunusemreozdemir
Copy link
Collaborator

No description provided.

Copy link

linear bot commented Jan 10, 2025

@yunusemreozdemir yunusemreozdemir marked this pull request as draft January 10, 2025 15:35
@yunusemreozdemir yunusemreozdemir marked this pull request as ready for review January 13, 2025 06:11
Comment on lines +1 to +6
from inspect import iscoroutinefunction
from fastapi import FastAPI, Request, Response
from typing import Callable, Awaitable, cast, TypeVar
from typing import Callable, Awaitable, cast, TypeVar, Union
from upstash_workflow.serve.serve import serve
from upstash_workflow.context.context import WorkflowContext
from upstash_workflow.asyncio.serve.serve import serve as async_serve
Copy link
Contributor

Choose a reason for hiding this comment

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

we should probably do this in another PR to avoid breaking the existing PRs but the fastapi integration shouldn't be here I think. Do you think it makes sense to add a folder for the integrations?

@CahidArda CahidArda merged commit 6452133 into master Jan 13, 2025
1 check passed
@CahidArda CahidArda deleted the DX-1547 branch January 13, 2025 14:27
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