コード例 #1
0
ファイル: suite_output.py プロジェクト: kaday/cylc
 def roll(self):
     # roll the stdout and stderr log files
     oarchive = rolling_archive(self.opath, self.arclen, sep='.')
     earchive = rolling_archive(self.epath, self.arclen, sep='.')
     if self.roll_at_startup:
         oarchive.roll()
         earchive.roll()
コード例 #2
0
ファイル: suite_output.py プロジェクト: benfitzpatrick/cylc
 def roll(self):
     # roll the stdout and stderr log files
     oarchive = rolling_archive(self.opath, self.arclen, sep='.')
     earchive = rolling_archive(self.epath, self.arclen, sep='.')
     if self.roll_at_startup:
         oarchive.roll()
         earchive.roll()
コード例 #3
0
 def __init__(self,
              suite,
              run_mode='live',
              clock=None,
              ict=None,
              stop_tag=None):
     self.run_mode = run_mode
     self.clock = clock
     self.ict = ict
     self.stop_tag = stop_tag
     gcfg = get_global_cfg()
     self.dir = gcfg.get_derived_host_item(suite, 'suite state directory')
     self.path = os.path.join(self.dir, 'state')
     arclen = gcfg.cfg['state dump rolling archive length']
     self.archive = rolling_archive(self.path, arclen)