mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-29 17:42:12 +08:00
WIP job handlers as uWSGI mules from GCC 2017 Hackathon.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from __future__ import print_function
|
||||
|
||||
import os.path
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'lib')))
|
||||
@@ -18,9 +18,13 @@ DESCRIPTION = "Script to determine uWSGI command line arguments."
|
||||
|
||||
|
||||
def _get_uwsgi_args(args, kwargs):
|
||||
print('--ini-paste {galaxy_ini}{mule}'.format(
|
||||
handlerct = int(kwargs.get('job_handler_count', 1))
|
||||
virtualenv = os.environ.get('VIRTUAL_ENV', None)
|
||||
print('{virtualenv}--ini-paste {galaxy_ini}{mule}{farm}'.format(
|
||||
virtualenv='--virtualenv %s ' % virtualenv if virtualenv else '',
|
||||
galaxy_ini=args.config_file,
|
||||
mule=' --mule=lib/galaxy/main.py' * int(kwargs.get('job_handler_count', 1))))
|
||||
mule=' --mule=lib/galaxy/main.py' * handlerct,
|
||||
farm=' --farm=handlers:%s' % ','.join([str(x) for x in range(1, handlerct + 1)])))
|
||||
|
||||
|
||||
ACTIONS = {
|
||||
|
||||
Reference in New Issue
Block a user