Comments (3)
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
options Is passed to get_app for use as variable assignments like {'http_port': 8080} and then use %(http_port)s in the config file.
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:]
from pyramid_celery.
The previous solution doesn't work anymore because we are deprecating the p* commands. I'm thinking the new api will be:
celery -A pyramid_celery.celery_app --ini-var database=postgres, user=sontek
I wanted to support multiple --ini-var
calls but there is a bug in celery currently that breaks this. PR here:
from pyramid_celery.
Added support for this in b946494
from pyramid_celery.
Related Issues (20)
- TypeError: flower() got an unexpected keyword argument 'ini_var' HOT 2
- Unable to run purge with Celery release candidate 5.3.0rc1 HOT 8
- Admins list isn't read correctly HOT 1
- Environment variable parsing not supported HOT 6
- options for celerybeat? HOT 1
- ini-var interface question HOT 1
- pyramid_celery fails silently when the inifile is not well configured HOT 2
- broker_transport_options seems to not work with celery 4.1 HOT 1
- Trouble with timezones/dst HOT 1
- Release 3.0.1
- Bootstrap pyramid in each worker, instead of in main thread HOT 1
- Failing build
- result_backend config option doesn't work in .ini file HOT 1
- pyramid_celery is not compatible with pyramid 2 HOT 3
- Support custom celeryconfig modules
- Possible typo in changelog
- does this module support python3.8.5 on windows64
- Worker Concurrency configuration on .ini does not work.
- fix deprecation warnings in python3.8 and above
- Current implementation does not support SQS configuration broker transport options
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyramid_celery.