Skip to content

Commit

Permalink
handle async runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Nov 9, 2012
1 parent 7007fe5 commit 1650a31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion moa/cli/setstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ def setstatus():
sys.stderr.write('invalid status: %s\n' % status)
sys.exit(-1)

if status != 'run':
if status not in ['running', 'running_async']:
if os.path.exists(pidFile):
os.unlink(pidFile)

print 'SETTING STATE', status
with open(statusFile, 'w') as F:
F.write(status)

Expand Down

0 comments on commit 1650a31

Please sign in to comment.