Skip to content

Commit

Permalink
scheduler: store id as top-level attr
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-sanders committed May 22, 2020
1 parent 1d7ea4a commit 1617ac2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cylc/flow/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
TASK_STATUS_FAILED)
from cylc.flow.templatevars import load_template_vars
from cylc.flow import __version__ as CYLC_VERSION
from cylc.flow.data_store_mgr import DataStoreMgr
from cylc.flow.data_store_mgr import DataStoreMgr, ID_DELIM
from cylc.flow.wallclock import (
get_current_time_string,
get_seconds_as_interval_string,
Expand Down Expand Up @@ -162,9 +162,13 @@ class Scheduler:
)

def __init__(self, reg, options, is_restart=False):
self.suite = reg
self.owner = get_user()
self.host = get_host()
self.id = f'{self.owner}{ID_DELIM}{self.suite}'

self.options = options
self.profiler = Profiler(self.options.profile_mode)
self.suite = reg
self.uuid_str = SchedulerUUID()
self.suite_dir = suite_files.get_suite_source_dir(
self.suite)
Expand All @@ -185,9 +189,6 @@ def __init__(self, reg, options, is_restart=False):
self.template_vars = load_template_vars(
self.options.templatevars, self.options.templatevars_file)

self.owner = get_user()
self.host = get_host()

self.is_updated = False
self.is_stalled = False

Expand Down

0 comments on commit 1617ac2

Please sign in to comment.