Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the SQLAlchemy session at the end of the process function
This fixes a bug where the process function fails to update the database when setting the task status to `reported` if the pebble process had previously processed the task. By removing the session after processing, the next task that runs in the same process will grab a new session and will be forced to pull new objects from the database. Preventing any data inconsistencies.
- Loading branch information