Skip to content

Commit

Permalink
working on an error-cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Nov 7, 2012
1 parent 7450669 commit 09c4858
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions moa/plugin/system/openLavaActor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import sys
import tempfile


import jinja2
import moa.logger
import moa.ui
from moa.sysConf import sysConf
Expand Down Expand Up @@ -228,6 +230,11 @@ def s(*cl):
l.debug("jids stored %s" % str(sysConf.job.data.openlava.jids))
return p.returncode

OnErrorScript = """
"""

def hook_postRun():
"""
Expand All @@ -237,6 +244,7 @@ def hook_postRun():
with open('jidlist', 'w') as F:
F.write("\n".join(
map(str, sysConf.job.data.openlava.get('alljids'))))


#ergister this actor globally
sysConf.actor.actors['openlava'] = openlavaRunner
Expand Down

0 comments on commit 09c4858

Please sign in to comment.