Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/galaxy/util/web_compat.py @ 0:26e78fe6e8c4 draft
"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
| author | shellac |
|---|---|
| date | Sat, 02 May 2020 07:14:21 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:26e78fe6e8c4 |
|---|---|
| 1 """Work around for gross circular dependency between galaxy.util and galaxy.web_stack. | |
| 2 | |
| 3 Provide a function that will delay to forking in a uwsgi environment but run immediately | |
| 4 otherwise. | |
| 5 """ | |
| 6 try: | |
| 7 from galaxy.web_stack import register_postfork_function | |
| 8 except ImportError: | |
| 9 def register_postfork_function(f, *args, **kwargs): | |
| 10 f(*args, **kwargs) |
