Skip to content

Commit

Permalink
Provide default value for subscriber for managers not supporting it
Browse files Browse the repository at this point in the history
  • Loading branch information
totycro committed Jul 6, 2023
1 parent c5d6ca9 commit d61f7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygeoapi/process/manager/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def delete_job(self, job_id: str) -> bool:

def _execute_handler_async(self, p: BaseProcessor, job_id: str,
data_dict: dict,
subscriber: Optional[Subscriber],
subscriber: Optional[Subscriber]=None,
) -> Tuple[str, None, JobStatus]:
"""
This private execution handler executes a process in a background
Expand All @@ -206,7 +206,7 @@ def _execute_handler_async(self, p: BaseProcessor, job_id: str,

def _execute_handler_sync(self, p: BaseProcessor, job_id: str,
data_dict: dict,
subscriber: Optional[Subscriber],
subscriber: Optional[Subscriber]=None,
) -> Tuple[str, Any, JobStatus]:
"""
Synchronous execution handler
Expand Down

0 comments on commit d61f7f9

Please sign in to comment.