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

[task scheduling] task server tweaks #11785

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

zzstoatzz
Copy link
Contributor

No description provided.

@zzstoatzz zzstoatzz marked this pull request as ready for review January 31, 2024 14:44
@zzstoatzz zzstoatzz requested a review from a team as a code owner January 31, 2024 14:44
@zzstoatzz zzstoatzz requested review from chrisguidry and removed request for a team January 31, 2024 14:44
@zzstoatzz zzstoatzz changed the title smol tweaks [task scheduling] task server tweaks Jan 31, 2024

flow_run_context = FlowRunContext.get()

if not flow_run_context:
if PREFECT_EXPERIMENTAL_ENABLE_TASK_SCHEDULING.value():
return _submit_task_run(task=task, parameters=parameters)
return _create_autonomous_task_run(task=task, parameters=parameters)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like that a lot!

@zzstoatzz zzstoatzz merged commit 6a13bbe into task-subscription-api Jan 31, 2024
21 of 52 checks passed
@zzstoatzz zzstoatzz deleted the task-subscription-api-tweaks branch January 31, 2024 14:47
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