rhettg / Tron

Next generation batch process scheduling and management
Other
11 stars 0 forks source link

tronctl start on a failed job just 500s #78

Closed rhettg closed 12 years ago

rhettg commented 12 years ago

Crash here:

Unhandled Error
Traceback (most recent call last):
 File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1371, in dataReceived
   finishCallback(data[contentLength:])
 File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1585, in _finishRequestBody
   self.allContentReceived()
 File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1641, in allContentReceived
   req.requestReceived(command, path, version)
 File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 807, in requestReceived
   self.process()
---  ---
 File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 125, in process
   self.render(resrc)
 File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 132, in render
   body = resrc.render(self)
 File "/usr/lib/python2.5/site-packages/twisted/web/resource.py", line 210, in render
   return m(request)
 File "/usr/lib/python2.5/site-packages/tron/www.py", line 170, in render_POST
   self._start(request)
 File "/usr/lib/python2.5/site-packages/tron/www.py", line 193, in _start
   self._run.start()
 File "/usr/lib/python2.5/site-packages/tron/job.py", line 63, in start
   action.attempt_start()
 File "/usr/lib/python2.5/site-packages/tron/action.py", line 192, in attempt_start
   self.start()
 File "/usr/lib/python2.5/site-packages/tron/action.py", line 200, in start
   assert self.state == self.STATE_STARTING, self.state
exceptions.AssertionError: succeeded

A more clear response would be to indicate the state is invalid. tronctl should probably direct the user to use the --run_date option.