Skip to content

Commit

Permalink
restart: catch possible platform error
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed Aug 25, 2022
1 parent ba06b80 commit 8a944ca
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cylc/flow/task_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
import cylc.flow.flags
from cylc.flow import LOG
from cylc.flow.cycling.loader import get_point, standardise_point_string
from cylc.flow.exceptions import WorkflowConfigError, PointParsingError
from cylc.flow.exceptions import (
PlatformLookupError,
PointParsingError,
WorkflowConfigError,
)
from cylc.flow.id import Tokens, detokenise
from cylc.flow.id_cli import contains_fnmatch
from cylc.flow.id_match import filter_ids
Expand Down Expand Up @@ -448,8 +452,11 @@ def load_db_task_pool_for_restart(self, row_idx, row):
TASK_STATUS_SUCCEEDED
):
# update the task proxy with platform
itask.platform = get_platform(platform_name)

try:
platform = get_platform(platform_name)
except PlatformLookupError:
platform = None
itask.platform = platform
if time_submit:
itask.set_summary_time('submitted', time_submit)
if time_run:
Expand Down

0 comments on commit 8a944ca

Please sign in to comment.