| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
As the first target of the new .init. submodule move
celery_setup there. Quite straight forward, just a lot of
places to change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Lots of fixes to do this.
- setup_celery_from_config no longer responsible for checking
'celery_setup_elsewhere'; that's the app's job. (This was a problem
because more than the app was relying on using this function)
- Allow us to specifically set the config file we're setting up
celery from with setup_self
- Set up celery_always_eager. This is something we strongly want
while doing tests.
- Instead of setting up the app in the get_test_app method, let's set
that up simply by importing from_tests, which should itself up via
from_celery being the environment variable being set.
|
|
|
|
|
| |
Basically, if we don't do this celery sets itself up before it should
and improperly. :\
|
|
|
|
|
|
|
| |
- The code for this is significantly simpler now. The app sets up
everything but celery, and from_celery finishes the job.
- There's no more specifying the mediagoblin section in the file,
which doesn't make sense anymore and was already confusing.
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
mediagoblin/celery_setup/from_celery.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
setup_self used to look like this:
setup_self(setup_globals_func=setup_globals)
The function isn't called with any param, so drop it.
Rewrite function as needed.
The module var OUR_MODULENAME just has the module's name in
it. This is available as __name__ anyway, so use this to
initialize the var.
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
| |
I needed to split the db connection/opening into open.py,
due to an import loop:
- util.py needs db/util.py:ObjectId
- db/util.py would need db/models.py
- db/models.py needs util.py:slugify
|
| |
|
|
|
|
| |
from_celery
|
|
|
|
|
|
|
|
| |
The database is a central point of interest/discussion.
Represent that by its own directory.
This will surely become more interesting when we have
migrations for example.
|
| |
|
|
|
|
| |
failing)
|
|
|
|
| |
My name's Chris Webber and I ignore pyflakes warnings.
|
| |
|
|
|
|
| |
Signed-off-by: Joar Wandborg <git@wandborg.com>
|
|
|
|
| |
Signed-off-by: Joar Wandborg <git@wandborg.com>
|
| |
|
|
auto-configures a celery config module from your paste config
|