rhettg / Tron

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

Misconfiguration of dependencies not caught, leads to later crash #65

Closed rhettg closed 12 years ago

rhettg commented 12 years ago

It's possible to configure a action with requirements that aren't an action in the current job.

This obviously doesn't work when it goes to actually run the job.

Crash is: 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 280, in render_POST self._master_control.enable_job(self._job) File "/usr/lib/python2.5/site-packages/tron/mcp.py", line 323, in enable_job self.schedule_next_run(job) File "/usr/lib/python2.5/site-packages/tron/mcp.py", line 300, in schedule_next_run for next in job.next_runs(): File "/usr/lib/python2.5/site-packages/tron/job.py", line 294, in next_runs return self.scheduler.next_runs(self) File "/usr/lib/python2.5/site-packages/tron/scheduler.py", line 80, in next_runs job_runs = job.build_runs() File "/usr/lib/python2.5/site-packages/tron/job.py", line 341, in build_runs return [self.build_run()] File "/usr/lib/python2.5/site-packages/tron/job.py", line 335, in build_run self.build_action_dag(job_run, actions) File "/usr/lib/python2.5/site-packages/tron/job.py", line 313, in build_action_dag raise ConfigBuildMismatchError("Unknown action %s, configuration mismatch?" % req_action.name) tron.job.ConfigBuildMismatchError: Unknown action verify_ranger_present, configuration mismatch?