Option to specify engine output destination

Bug #797761 reported by Lars Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake (deprecated)
Fix Released
Undecided
Mattia Barbon

Bug Description

We should be able to tell the engine where calculation results should go (XML files vs. DB). For starters, this could be implemented as a command line option (--output=db or --output=xml).

Tags: sys-quality
Changed in openquake:
status: New → Confirmed
tags: added: sys-quality
Revision history for this message
Mattia Barbon (mattia.barbon) wrote :

Solution outline:

- allow creating uiapi.oq_job without a corresponding upload
  * make the uiapi.oq_params.upload_id column nullable
  * make the uiapi.oq_job.path column nullable

- add an output_type parameter to bin/openquake
- when loading a job from file with output_type=db, create a new uiapi.oq_job, with the corresponding oq_params
  * for now always use the 'openquake' user, requires integrating with the authentication blueprint
- for each artifact type, add the code to serialize to DB

Changed in openquake:
status: Confirmed → In Progress
assignee: nobody → Mattia Barbon (mattia.barbon)
John Tarter (toh2)
Changed in openquake:
milestone: none → 0.4.1
Changed in openquake:
status: In Progress → Fix Committed
Changed in openquake:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.