Skip to content

Commit e9ea5a9

Browse files
committed
Pass worker_task_queue to the create-tools API
1 parent f349543 commit e9ea5a9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

application_sdk/application/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ async def _register_activities_with_delay():
163163
await asyncio.to_thread(
164164
flush_activity_registrations,
165165
app_name=self.application_name,
166+
workflow_task_queue=self.workflow_client.worker_task_queue,
166167
activity_specs=ACTIVITY_SPECS,
167168
)
168169

application_sdk/decorators/automation_activity.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def decorator(func: Callable[..., Any]) -> Callable[..., Any]:
133133

134134
def flush_activity_registrations(
135135
app_name: str,
136+
workflow_task_queue: str,
136137
activity_specs: List[dict[str, Any]],
137138
) -> None:
138139
"""Flush all collected registrations by calling the activities create API via HTTP."""
@@ -181,6 +182,7 @@ def flush_activity_registrations(
181182
payload = {
182183
"app_qualified_name": app_qualified_name,
183184
"app_name": app_name,
185+
"workflow_task_queue": workflow_task_queue,
184186
"tools": tools,
185187
}
186188

0 commit comments

Comments
 (0)