No longer storing the 'python -m ais.' prefix in job commands
[ais.git] / bin / jobrunner.py
index c0e7ccd717c59f3469265ca19f13e40ba2110c0b..0af8f90b86435fb5e0aa0e36ba71c4db6a62d726 100755 (executable)
@@ -58,6 +58,7 @@ def runjob():
         return False
 
     jobid, command, friendly_filename, user_id = row
+    command = 'python -m ais.' + command
     logging.info('Starting job %s: %s', jobid, command)
 
     sqlexec(u'UPDATE job SET start_time=now() WHERE id=%(jobid)s', {'jobid': jobid})