Skip to content
This repository has been archived by the owner on Aug 15, 2018. It is now read-only.

Commit

Permalink
Dispose engine upon app creation for uwsgi compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
HACKERMD committed Nov 15, 2016
1 parent ce6caf6 commit 22105d4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tmserver/appfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,7 @@ def create_app(config_overrides={}, verbosity=None):
task = gc3pie.retrieve_single_job(tid)
gc3pie.continue_jobs(task)

# For uWSGI fork()
engine.dispose()

return app

0 comments on commit 22105d4

Please sign in to comment.