Homec4science

workflows: revamp session handling

Authored by Jan Aage Lavik <jan.age.lavik@cern.ch> on Mar 12 2014, 14:14.

Description

workflows: revamp session handling

  • Changes the way the db.session is called in BibWorkflowEngine and BibWorkflowObject models to use a session_manager decorator.
  • Adds new classmethods to BibWorkflowObject to create objects and revisions.
  • New BibWorkflowObject's are now by default initiated with version set to INITIAL (from RUNNING).
  • RUNNING version is only set when a BibWorkflowObject is actually being executed in a BibWorkflowEngine.
  • Removes the workflow status FINISHED, as it was too ambiguous compared to COMPLETED. If a workflow contains data objects that have not reached FINAL version, the workflow status is set to HALTED.
  • Cleans some of the log messages in the engine.
  • Reworks what happens when a workflow is asked to *fully* restart. It will take the INITIAL version of every associated object and run it through the workflow from the start.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>

Details

Committed
kuncarJun 4 2014, 16:05
Parents
R3600:eb2023f3a9ea: registry: dict-style auto discover registry
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:3caf1efb53ef: workflows: revamp session handling (authored by Jan Aage Lavik <jan.age.lavik@cern.ch>).Jun 4 2014, 16:05