Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Create a `quickstart.py` with the following:
```python
from conductor.client.automator.task_handler import TaskHandler
from conductor.client.configuration.configuration import Configuration
from conductor.client.orkes_clients import OrkesClients
from conductor.client.orkes_clients import OrkesClients # works with OSS Conductor and Orkes Conductor
from conductor.client.workflow.conductor_workflow import ConductorWorkflow
from conductor.client.worker.worker_task import worker_task

Expand All @@ -131,6 +131,8 @@ def main():
workflow.register(overwrite=True)

# Start polling for tasks (one worker subprocess per worker function).
# Note: scan_for_annotated_workers=True only discovers @worker_task functions that have
# already been imported. If workers are in a separate module, import it first.
with TaskHandler(configuration=config, scan_for_annotated_workers=True) as task_handler:
task_handler.start_processes()

Expand Down
Loading