Skip to content
Snippets Groups Projects
Commit 0f6b37c0 authored by David Verelst's avatar David Verelst
Browse files

launch.py: __call__ should also return launch() return status

parent 19c00ad8
No related branches found
No related tags found
No related merge requests found
...@@ -465,18 +465,21 @@ class Scheduler: ...@@ -465,18 +465,21 @@ class Scheduler:
if not depend: if not depend:
if crontab_mode: if crontab_mode:
pbsflist = self.get_joblist(verbose=False) pbsflist = self.get_joblist(verbose=False)
self.launch(pbsflist, crontab_mode=crontab_mode) status = self.launch(pbsflist, crontab_mode=crontab_mode)
else: else:
self.print_config() self.print_config()
print ' method ; scheduler' print ' method ; scheduler'
pbsflist = self.get_joblist() pbsflist = self.get_joblist()
self.print_logheader() self.print_logheader()
self.launch(pbsflist, crontab_mode=crontab_mode) status = self.launch(pbsflist, crontab_mode=crontab_mode)
print '' print ''
else: else:
print ' method ; dependencies' print ' method ; dependencies'
self.launch_deps() self.launch_deps()
print '' print ''
status = 'dependencies'
return status
def get_joblist(self, verbose=True): def get_joblist(self, verbose=True):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment