File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,8 @@ async def _run_activity(
286
286
if not activity_def :
287
287
activity_names = ", " .join (sorted (self ._activities .keys ()))
288
288
raise temporalio .exceptions .ApplicationError (
289
- f"Activity function { start .activity_type } is not registered on this worker, available activities: { activity_names } " ,
289
+ f"Activity function { start .activity_type } for workflow { start .workflow_execution .workflow_id } "
290
+ f"is not registered on this worker, available activities: { activity_names } " ,
290
291
type = "NotFoundError" ,
291
292
)
292
293
Original file line number Diff line number Diff line change @@ -544,10 +544,7 @@ async def say_hello(name: str) -> str:
544
544
id = str (uuid .uuid4 ()),
545
545
task_queue = worker .task_queue ,
546
546
)
547
- assert str (assert_activity_application_error (err .value )) == (
548
- "NotFoundError: Activity function wrong_activity is not registered on this worker, "
549
- "available activities: say_hello"
550
- )
547
+ assert "is not registered" in str (assert_activity_application_error (err .value ))
551
548
552
549
553
550
async def test_max_concurrent_activities (client : Client , worker : ExternalWorker ):
You can’t perform that action at this time.
0 commit comments