Skip to content

Commit

Permalink
remove now not needed taskdef.runmode infor
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Nov 12, 2024
1 parent 0cc5b9e commit 3f96ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion cylc/flow/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,6 @@ def _get_taskdef(self, name: str) -> TaskDef:
taskd = TaskDef(
name,
rtcfg,
RunMode.get(self.options),
self.start_point,
self.initial_point)

Expand Down
5 changes: 2 additions & 3 deletions cylc/flow/taskdef.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class TaskDef:

# Memory optimization - constrain possible attributes to this list.
__slots__ = [
"run_mode", "rtconfig", "start_point", "initial_point", "sequences",
"rtconfig", "start_point", "initial_point", "sequences",
"used_in_offset_trigger", "max_future_prereq_offset",
"sequential", "is_coldstart",
"workflow_polling_cfg", "expiration_offset",
Expand All @@ -162,11 +162,10 @@ class TaskDef:
# Store the elapsed times for a maximum of 10 cycles
MAX_LEN_ELAPSED_TIMES = 10

def __init__(self, name, rtcfg, run_mode, start_point, initial_point):
def __init__(self, name, rtcfg, start_point, initial_point):
if not TaskID.is_valid_name(name):
raise TaskDefError("Illegal task name: %s" % name)

self.run_mode = run_mode
self.rtconfig = rtcfg
self.start_point = start_point
self.initial_point = initial_point
Expand Down

0 comments on commit 3f96ce7

Please sign in to comment.