botify-labs / simpleflow

Python library for dataflow programming.
https://botify-labs.github.com/simpleflow/
MIT License
68 stars 24 forks source link

Add ChildWorkflowTask class #364

Closed ybastide closed 5 years ago

ybastide commented 5 years ago

Since #360 has been merged, one can write:

Chain(
    ActivityTask(a_task, args, **kwargs),
    WorkflowTask(None, a_workflow, *args, **kwargs),
)

The None argument is disgracious; but it's a bit too late to remove it. (It's the executor, which is not meant to be set yet.)

A non-breaking solution is to add a ChildWorkflowTask class to be used in this context.

pcaneill commented 5 years ago

Done in https://github.com/botify-labs/simpleflow/pull/365