-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Removed references to SequentialTaskRunner #13996
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I committed a couple other changes. I hope you don't mind.
Task runners are not required for task execution. Calling a task function directly without a task runner executes the | ||
function sequentially by default. Execution of a task function blocks execution of its flow until the task completes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Task runners are not required for task execution. Calling a task function directly without a task runner executes the | |
function sequentially by default. Execution of a task function blocks execution of its flow until the task completes. | |
Task runners are not required for task execution. Directly calling a function decorated with `@task` executes it like a normal python function, that is, it blocks execution of the parent flow run until the task completes. |
@flow(task_runner=DaskTaskRunner()) | ||
def dask_subflow(): | ||
hello_dask.submit() | ||
|
||
@flow(task_runner=ConcurrentTaskRunner()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't be needed since each subflow specifies its own task_runner
already
@flow(task_runner=ConcurrentTaskRunner()) | |
@flow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! a couple comments
|
||
<Note> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we could keep an admonition like "SequentialTaskRunner
is longer necessary, just call your task" or link to task concept page since it seems likely that people will have used it for one reason or another and come here looking for it after installing 3.x / breaking imports
I had this brought up by someone who found that their usage of SequentialTaskRunner was no longer working. I've changed the explanation and examples of task runners to explain how tasks are sequential by default, and concurrent by default, when using .submit().
Checklist
<link to issue>
"maintenance
,fix
,feature
,enhancement
,docs
.For documentation changes:
mint.json
for files that are removed or renamed.For new functions or classes in the Python SDK:
docs/mint.json
navigation.