Skip to content

Commit 4fee1a4

Browse files
committed
propagate synchronous tag
1 parent 96393c5 commit 4fee1a4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cems/src/main/python/workflow.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,14 @@ def _add_post_processing_preconditions(self, preconditions):
244244

245245
return preconditions
246246

247-
def _get_monitor(self, hosts, calls, log_dir, simulation):
247+
def _get_monitor(self, hosts, calls, log_dir, simulation, synchronous=False):
248248
"""
249249
250250
:type hosts: list
251251
:type calls: list
252252
:type log_dir: str
253253
:type simulation: bool
254+
:type synchronous: bool
254255
:rtype : Monitor
255256
"""
256257
preconditions = list()
@@ -262,7 +263,7 @@ def _get_monitor(self, hosts, calls, log_dir, simulation):
262263
# @todo 2 tb/tb do we need this 2016-03-29
263264
# self._add_obs_preconditions(preconditions)
264265
# self._add_smp_preconditions(preconditions)
265-
return Monitor(preconditions, self.get_usecase(), hosts, calls, log_dir, simulation)
266+
return Monitor(preconditions, self.get_usecase(), hosts, calls, log_dir, simulation, synchronous)
266267

267268
def _next_year_start(self, date):
268269
"""
@@ -381,7 +382,7 @@ def run_matchup(self, hosts, num_parallel_tasks, simulation=False, logdir='trace
381382
else:
382383
runs_script = 'matchup_start.sh'
383384

384-
monitor = self._get_monitor(hosts, [(runs_script, num_parallel_tasks)], logdir, simulation)
385+
monitor = self._get_monitor(hosts, [(runs_script, num_parallel_tasks)], logdir, simulation, synchronous)
385386

386387
sensors = self._get_sensor_pairs()
387388
for sensor_pair in sensors:

0 commit comments

Comments
 (0)