Skip to content

Commit

Permalink
even more changes to run
Browse files Browse the repository at this point in the history
  • Loading branch information
squirrelo committed Jun 22, 2014
1 parent 2e9cc21 commit ad4329c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions qiita_ware/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ def run_analysis(user, analysis):
o_fmt = ' '.join(['%s %s' % (k, v) for k, v in options.items()])
c_fmt = str("%s %s" % (command, o_fmt))

# send running message to user wait page
job.status = 'running'
msg["msg"] = "Running"
r_server.rpush(user + ":messages", dumps(msg))

# run the command
try:
job.status = 'running'
msg["msg"] = "Running"
r_server.rpush(user + ":messages", dumps(msg))
r_server.publish(user, dumps(msg))
qiita_compute.submit_sync(c_fmt)
job.add_results([(options['--output_dir'], 7)])
except:
all_good = False
job.status = 'error'
Expand Down

0 comments on commit ad4329c

Please sign in to comment.