Skip to content

Commit 904f8c7

Browse files
committed
raise error when workflow and workflows are none
1 parent a8c5fa8 commit 904f8c7

File tree

1 file changed

+3
-0
lines changed
  • src/agentex/lib/core/temporal/workers

1 file changed

+3
-0
lines changed

src/agentex/lib/core/temporal/workers/worker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ async def run(
133133
if debug_enabled:
134134
logger.info("🐛 [WORKER] Temporal debug mode enabled - deadlock detection disabled")
135135

136+
if workflow is None and workflows is None:
137+
raise ValueError("Either workflow or workflows must be provided")
138+
136139
worker = Worker(
137140
client=temporal_client,
138141
task_queue=self.task_queue,

0 commit comments

Comments
 (0)