-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing variables to .ini config file #23
Comments
pyramid_celery.commands.CommandMixin is using pyramid.paster.bootstrap to load wsgi application from PasteDeploy config file. The current version does not pass through additional commandline arguments following config_uri to the bootstrap call. That matters Excerpt from docs I changed a single line - the call to pyramid.paster.bootstrap pyramid_celery.commands.init.py from __future__ import absolute_import
import sys
from pyramid.paster import bootstrap
from celery.app import default_app
class CommandMixin(object):
preload_options = ()
def setup_app_from_commandline(self, argv):
if len(argv) < 2:
print >> sys.stderr, 'No configuration file specified.'
sys.exit(1)
bootstrap(config_uri=argv[1], options=argv[2:])
self.app = default_app
return argv[:1] + argv[2:] |
The previous solution doesn't work anymore because we are deprecating the p* commands. I'm thinking the new api will be:
I wanted to support multiple |
Added support for this in b946494 |
My config file makes use of variables like so:
And I pass them along like so:
How can I pass these variables along using pceleryd?
The text was updated successfully, but these errors were encountered: