Prevent OqJob and Hazard/Risk Calculation reference key inconsistencies
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake Engine |
Fix Released
|
Critical
|
matley |
Bug Description
We need to prevent the situation where a calculation (Hazard/Risk) is saved without the corresponding job. E.g.
openquake --lhc i get:
calc_id | status | last_update | description
1 | successful | 2013-09-18 11:15:02 | Disaggregation calculation for Portugal with AB2010
2 | successful | 2013-09-18 13:53:21 | Disaggregation calculation for Portugal with Ba2006
4 | pending | 2013-09-18 17:15:22 | Disaggregation calculation for Portugal with bothGMPE
Traceback (most recent call last):
File "/usr/local/
main()
File "/usr/local/
list_
File "/usr/local/
_print_
File "/usr/local/
latest_job = calc.oqjob
File "/usr/lib/
rel_obj = self.related.
File "/usr/lib/
% self.model.
openquake.
Changed in oq-engine: | |
importance: | Undecided → Critical |
assignee: | nobody → matley (matley) |
milestone: | none → 1.0.1 |
description: | updated |
Changed in oq-engine: | |
status: | In Progress → Fix Committed |
Changed in oq-engine: | |
status: | Fix Committed → Fix Released |
Original bug report https:/ /bugs.launchpad .net/oq- engine/ +bug/1227472