Skip to content

Commit

Permalink
consumer: does a commit to DB on every message
Browse files Browse the repository at this point in the history
* Properly saves run_finished_at attribute
  • Loading branch information
Rokas Maciulaitis committed Feb 6, 2020
1 parent 88ea799 commit acf7fb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reana_workflow_controller/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def on_message(self, body, message):
# Caching: calculate input hash and store in JobCache
if 'caching_info' in msg:
_update_job_cache(msg)
Session.commit()
Session.commit()


def _update_workflow_status(workflow_uuid, status, logs):
Expand Down

0 comments on commit acf7fb3

Please sign in to comment.