Skip to content

Commit cfc0115

Browse files
author
Alan Christie
committed
fix: Attempt to fix tests
1 parent 353d240 commit cfc0115

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/wapi_adapter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"""
1717

1818
import os
19+
from http import HTTPStatus
1920
from multiprocessing import Lock
2021
from pickle import Pickler, Unpickler
2122
from typing import Any
@@ -385,4 +386,4 @@ def realise_outputs(
385386
) -> tuple[dict[str, Any], int]:
386387
del running_workflow_step_id
387388
del outputs
388-
return {}, 0
389+
return {}, HTTPStatus.OK

workflow/workflow_engine.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,11 @@ def _handle_pod_message(self, msg: PodMessage) -> None:
276276
)
277277
if status_code != HTTPStatus.OK:
278278
error_num = status_code
279-
error_msg = response["error"]
279+
error_msg = (
280+
response["error"]
281+
if "error" in response
282+
else "Undisclosed error when realising outputs"
283+
)
280284

281285
if error_num is not None:
282286
# The job was successful but linking outputs (back to the Project directory)

0 commit comments

Comments
 (0)