Skip to content

Commit

Permalink
Add debugging to indicate running threads just prior to prefork, to m…
Browse files Browse the repository at this point in the history
…ake finding and fixing of these easier in the future.
  • Loading branch information
dannon committed Aug 12, 2016
1 parent 7ebf7e5 commit 7c5cadb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/galaxy/webapps/galaxy/buildapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
import sys
import threading
import atexit

try:
Expand Down Expand Up @@ -128,6 +129,9 @@ def paste_app_factory( global_conf, **kwargs ):

register_postfork_function(postfork_setup)

for th in threading.enumerate():
if th.is_alive():
log.debug("Prior to webapp return, Galaxy thread %s is alive.", th)
# Return
return webapp

Expand Down

0 comments on commit 7c5cadb

Please sign in to comment.