Skip to content

Commit

Permalink
Merge branch 'dev' into fix-codebase-docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Kanitz <[email protected]>
  • Loading branch information
uniqueg authored Mar 8, 2023
2 parents 477baf8 + 731ad7e commit 680d438
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pro_tes/ga4gh/tes/task_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def _set_projection(self, view: str) -> Dict:
def _update_task(
self, payload: dict, db_document: DbDocument, start_time: str, **kwargs
) -> DbDocument:
"""Update the incoming task document.
"""Update the task document.
Args:
payload: A dictionary containing the payload for the update.
Expand All @@ -476,7 +476,7 @@ def _update_task(
return db_document

def _set_logs(self, payloads: dict, start_time: str) -> Dict:
"""Create or update TesTask.logs and set start time.
"""Create or update `TesTask.logs` and set start time.
Args:
payload: A dictionary containing the payload for the update.
Expand Down Expand Up @@ -508,7 +508,7 @@ def _update_doc_in_db(
tes_uri: str,
remote_task_id: str,
) -> DbDocument:
"""Set end time, task metadata in TesTask.logs, and update document.
"""Set end time, task metadata in `TesTask.logs`, and update document.
Args:
db_connector: The database connector.
Expand Down Expand Up @@ -567,7 +567,7 @@ def _update_task_metadata(
Returns:
The updated database document.
"""
for logs in db_document.task_incoming.logs:
for logs in db_document.task.logs:
tesNextTes_obj = TesNextTes(id=remote_task_id, url=tes_uri)
if logs.metadata.forwarded_to is None:
logs.metadata.forwarded_to = tesNextTes_obj
Expand Down

0 comments on commit 680d438

Please sign in to comment.