UHS calculator class
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenQuake (deprecated) |
Fix Released
|
Medium
|
Lars Butler |
Bug Description
[et=24h] # 3 days
[at=11h]
--Calculation Workflow--
for rlz in realizations:
sample_
sample_
for site in sites:
compute_uhs(s, site, poes)
utils.tasks.
for rlz in realizations:
sample_
sample_
distribute(
An async task handler will need to be defined to tally the results as they are computed (so we know when the calculation is complete).
Details
compute_uhs:
- This is executed by a celery worker (as an async task). Results should be saved directly the to the database.
- given a single site, compute uhs results for a realization (sample)
- calls the java UHSCalculator to perform the bulk of the computation
- results are saved directly to the database (write_uhs_results; see bug # 925425)
- the implementation of this functionality is in the scope of bug # 888172
--Stats and Progress Indication--
Async task handler (mentioned above):
- create and maintain a 'total' ('t') counter for the total number of tasks.
- keep track of the task counter (in Redis) for the compute_uhs_task @task and compare the completed # to the 't' counter to determine when the calculation is complete
--@preload--
The functionality in openquake.
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in openquake: | |
milestone: | none → 0.6.0 |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in openquake: | |
status: | Incomplete → In Progress |
description: | updated |
Changed in openquake: | |
status: | In Progress → Fix Committed |
Changed in openquake: | |
status: | Fix Committed → Fix Released |
Since this bug was originally specified, mixins have been removed and many improvements have been made in result serialization and stats code. The design for this bug should be updated accordingly (to use the components that are now available).