From 05e662c40d0d2de4c3272bf395b27fd12a2c4359 Mon Sep 17 00:00:00 2001 From: Edward Karavakis Date: Tue, 10 Mar 2026 11:15:09 +0100 Subject: [PATCH] Fix typos in comments, docstrings, and log messages - unkown -> unknown (JediDatasetSpec.py) - sucessful -> successful (Watcher.py) - commited -> committed (entity_module.py) - retrun -> return (misc_standalone_module.py) - paramter -> parameter (pcwl_utils.py) - succesful/there -> successful/the (task_api.py) Co-Authored-By: Claude Sonnet 4.6 --- pandaserver/api/v1/task_api.py | 2 +- pandaserver/jobdispatcher/Watcher.py | 2 +- pandaserver/taskbuffer/JediDatasetSpec.py | 2 +- pandaserver/taskbuffer/db_proxy_mods/entity_module.py | 2 +- pandaserver/taskbuffer/db_proxy_mods/misc_standalone_module.py | 2 +- pandaserver/workflow/pcwl_utils.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandaserver/api/v1/task_api.py b/pandaserver/api/v1/task_api.py index 5d8fc81db..613558244 100644 --- a/pandaserver/api/v1/task_api.py +++ b/pandaserver/api/v1/task_api.py @@ -894,7 +894,7 @@ def get_details(req: PandaRequest, task_id: int, include_parameters: bool = Fals Returns: dict: The system response `{"success": success, "message": message, "data": data}`. - When succesful, there data field contains the task details. + When successful, the data field contains the task details. When there was an error, the message field contains the description. """ tmp_logger = LogWrapper(_logger, f"get_details < task_id={task_id} include_parameters={include_parameters} include_status={include_status} >") diff --git a/pandaserver/jobdispatcher/Watcher.py b/pandaserver/jobdispatcher/Watcher.py index 1c35bf749..7409be9e4 100755 --- a/pandaserver/jobdispatcher/Watcher.py +++ b/pandaserver/jobdispatcher/Watcher.py @@ -119,7 +119,7 @@ def run(self): # event service if EventServiceUtils.isEventServiceJob(job) and not EventServiceUtils.isJobCloningJob(job): eventStat = self.taskBuffer.getEventStat(job.jediTaskID, job.PandaID) - # set sub status when no sucessful events + # set sub status when no successful events if EventServiceUtils.ST_finished not in eventStat: job.jobSubStatus = "es_heartbeat" # update job diff --git a/pandaserver/taskbuffer/JediDatasetSpec.py b/pandaserver/taskbuffer/JediDatasetSpec.py index cdedb6695..77f795831 100644 --- a/pandaserver/taskbuffer/JediDatasetSpec.py +++ b/pandaserver/taskbuffer/JediDatasetSpec.py @@ -228,7 +228,7 @@ def getMergeProcessTypes(cls): getMergeProcessTypes = classmethod(getMergeProcessTypes) - # get type of unkown input + # get type of unknown input def getUnknownInputType(cls): return "trn_unknown" diff --git a/pandaserver/taskbuffer/db_proxy_mods/entity_module.py b/pandaserver/taskbuffer/db_proxy_mods/entity_module.py index 58084a10b..63fac9727 100644 --- a/pandaserver/taskbuffer/db_proxy_mods/entity_module.py +++ b/pandaserver/taskbuffer/db_proxy_mods/entity_module.py @@ -633,7 +633,7 @@ def reset_resource_type_task(self, jedi_task_id, use_commit=True): if use_commit: if not self._commit(): raise RuntimeError("Commit error") - tmp_log.debug("commited...") + tmp_log.debug("committed...") except Exception: # roll back if use_commit: diff --git a/pandaserver/taskbuffer/db_proxy_mods/misc_standalone_module.py b/pandaserver/taskbuffer/db_proxy_mods/misc_standalone_module.py index c64e08c4d..da2d655a7 100644 --- a/pandaserver/taskbuffer/db_proxy_mods/misc_standalone_module.py +++ b/pandaserver/taskbuffer/db_proxy_mods/misc_standalone_module.py @@ -1048,7 +1048,7 @@ def getLockDatasets(self, sqlQuery, varMapGet, modTimeOffset="", getVersion=Fals # commit if not self._commit(): raise RuntimeError("Commit error") - # retrun + # return return retList except Exception: # roll back diff --git a/pandaserver/workflow/pcwl_utils.py b/pandaserver/workflow/pcwl_utils.py index 1ebd55de4..0cdf5cc5d 100644 --- a/pandaserver/workflow/pcwl_utils.py +++ b/pandaserver/workflow/pcwl_utils.py @@ -364,7 +364,7 @@ def convert_params_in_condition_to_parent_ids(condition_item, input_data, id_map setattr(condition_item, item, id_map[tmp_data["parent_id"]]) break if not isOK: - raise ReferenceError(f"unresolved paramter {param} in the condition string") + raise ReferenceError(f"unresolved parameter {param} in the condition string") elif isinstance(param, ConditionItem): convert_params_in_condition_to_parent_ids(param, input_data, id_map)