diff --git a/cylc/uiserver/data_store_mgr.py b/cylc/uiserver/data_store_mgr.py index 94059fa1..796ae314 100644 --- a/cylc/uiserver/data_store_mgr.py +++ b/cylc/uiserver/data_store_mgr.py @@ -48,6 +48,7 @@ apply_delta, generate_checksum, create_delta_store ) from cylc.flow.suite_files import ContactFileFields as CFF +from cylc.flow.network.suite_status import SuiteStatus from .workflows_mgr import workflow_request @@ -90,7 +91,7 @@ def update_contact(self, w_id, contact_data=None): flow.port = 0 # flow.pub_port = 0 flow.api_version = 0 - flow.status = 'stopped' + flow.status = SuiteStatus.Stopped.value # Apply to existing workflow data apply_delta(WORKFLOW, delta, self.data[w_id])