File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/service-library/src/servicelib/long_running_tasks Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class BaseLongRunningError(OsparcErrorMixin, Exception):
77
88class TaskNotRegisteredError (BaseLongRunningError ):
99 msg_template : str = (
10- "no task with task_name='{task_name}' was found in the task registry. "
10+ "no task with task_name='{task_name}' was found in the task registry tasks={tasks} . "
1111 "Make sure it's registered before starting it."
1212 )
1313
Original file line number Diff line number Diff line change @@ -466,7 +466,9 @@ async def start_task(
466466 ** task_kwargs : Any ,
467467 ) -> TaskId :
468468 if registered_task_name not in TaskRegistry .REGISTERED_TASKS :
469- raise TaskNotRegisteredError (task_name = registered_task_name )
469+ raise TaskNotRegisteredError (
470+ task_name = registered_task_name , tasks = TaskRegistry .REGISTERED_TASKS
471+ )
470472
471473 task = TaskRegistry .REGISTERED_TASKS [registered_task_name ]
472474
You can’t perform that action at this time.
0 commit comments