Skip to content

Commit

Permalink
Cleanup: fix local and dask receive handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cjao committed Jun 7, 2023
1 parent 884a530 commit 910f03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion covalent/executor/executor_plugins/dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def receive(self, task_group_metadata: Dict, data: Any) -> List[TaskUpdate
terminal_status = RESULT_STATUS.CANCELLED
else:
received = ReceiveModel.parse_obj(data)
terminal_status = Status(received.status)
terminal_status = Status(received.status.value)

for task_id in task_ids:
# TODO: Handle the case where the job was cancelled before the task started running
Expand Down
2 changes: 1 addition & 1 deletion covalent/executor/executor_plugins/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def _receive(self, task_group_metadata: Dict, data: Any) -> List[TaskUpdate]:
terminal_status = RESULT_STATUS.CANCELLED
else:
received = ReceiveModel.parse_obj(data)
terminal_status = Status(received.status)
terminal_status = Status(received.status.value)

task_result = {
"dispatch_id": dispatch_id,
Expand Down

0 comments on commit 910f03b

Please sign in to comment.