aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/celery_setup
Commit message (Collapse)AuthorAgeFilesLines
* Move mediagoblin.celery_setup -> mediagoblin.init.celeryElrond2011-07-024-182/+0
| | | | | | As the first target of the new .init. submodule move celery_setup there. Quite straight forward, just a lot of places to change.
* Actually make use of CELERY_SETUP in from_tests.pyChristopher Allan Webber2011-06-301-3/+6
|
* Celery wasn't really being properly connected during tests.Christopher Allan Webber2011-06-263-8/+10
| | | | | | | | | | | | | | | 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.
* Need to run nosetests with CELERY_CONFIG_MODULE set to from_tests again.Christopher Allan Webber2011-06-192-5/+35
| | | | | Basically, if we don't do this celery sets itself up before it should and improperly. :\
* Removing "paste config" phrasing where we're no longer using paste's configChristopher Allan Webber2011-06-191-3/+3
|
* Nosetests should now be able to run using the new configobj / app init setupChristopher Allan Webber2011-06-181-42/+0
| | | | | | | | | Lots of changes: - CELERY_CONFIG_FILE does not need to be set to the from_tests module to run tests anymore, in fact it *should not be set at all* and is specifically forbidden. - moved around the configuration to the new 2-file format - and generally adjusting the code appropriately.
* Updating celery_setup.from_celery to use new config loading / app initChristopher Allan Webber2011-06-181-54/+12
| | | | | | | - 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.
* Removing option to set celery config section.Christopher Allan Webber2011-06-181-3/+3
| | | | | There's no real reason to support setting the celery config section; so we'll just make it always ['celery'].
* Removing type conversions from setup_celery_from_config.Christopher Allan Webber2011-06-181-64/+5
| | | | | | | These simply aren't needed any more, not now that the config validator stuff does type conversion for us. Also fixed the docstring to explain force_celery_always_eager.
* mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-1/+1
|
* Merge remote branch 'remotes/elrond/idea/clean_celery_setup'Christopher Allan Webber2011-06-122-6/+5
|\ | | | | | | | | Conflicts: mediagoblin/celery_setup/from_celery.py
| * celery_setup: drop param to setup_self and simplify OUR_MODULENAMEElrond2011-06-102-7/+5
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Moving workbench out of process_mediaChristopher Allan Webber2011-06-111-2/+1
| |
* | Have the application set up instances of the WorkbenchManager.Christopher Allan Webber2011-06-111-2/+8
|/
* Proper webtest infrastructure... seems to be about right anyway :)Christopher Allan Webber2011-06-041-0/+43
|
* Propagate Exceptions up in Celery-Eager-ModeElrond2011-06-031-0/+1
| | | | | | | | When running in celery-eager mode, the celery machinery hides all exceptions inside "celery tasks" (you can find out about them on the task handle somehow). Currently much better to propagate them straight up, so they're visible on the console.
* Now you can set CELERY_ALWAYS_EAGER environment variable so that youChristopher Allan Webber2011-05-201-0/+5
| | | | | | don't have to run celeryd at the same time. This should make Elrond happy ;)
* Factor out most of the database connection into db/open.pyElrond2011-05-191-6/+2
| | | | | | | | 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
* Clean unused imports (found by pyflakes).Elrond2011-05-181-2/+1
|
* Renaming connect_database to connect_database_from_config and using in ↵Christopher Allan Webber2011-05-181-5/+3
| | | | from_celery
* Move models into new db/ directoryElrond2011-05-181-1/+2
| | | | | | | | 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.
* Asbool the email debug mode optionChristopher Allan Webber2011-05-081-2/+2
|
* Only convert db port if it's there and use asint to do it (better errors if ↵Christopher Allan Webber2011-05-081-1/+5
| | | | failing)
* mgoblin_section.get, not app_config.get (doh)Christopher Allan Webber2011-05-081-1/+1
| | | | My name's Chris Webber and I ignore pyflakes warnings.
* Added an email debug mode which, by default, is enabledChristopher Allan Webber2011-05-071-0/+1
|
* Updated default sender addressJoar Wandborg2011-05-081-1/+1
| | | | Signed-off-by: Joar Wandborg <git@wandborg.com>
* Made changes according to http://bugs.foocorp.net/issues/271#note-7Joar Wandborg2011-05-081-0/+4
| | | | Signed-off-by: Joar Wandborg <git@wandborg.com>
* Force imports of stuff like mediagoblin.process_media which has tasks we needChristopher Allan Webber2011-05-031-0/+6
|
* Register the models when using from_celeryChristopher Allan Webber2011-05-011-1/+2
|
* Now we have something useful: mediagoblin.celery_setup.from_celeryChristopher Allan Webber2011-05-011-0/+87
| | | | auto-configures a celery config module from your paste config
* tests for setup_celery_from_config()Christopher Allan Webber2011-04-301-1/+1
|
* A few more corrections to make setup_celery_from_config() work rightChristopher Allan Webber2011-04-301-7/+13
|
* Import based on the DEFAULT_SETTINGS_MODULE in setup_celery_from_configChristopher Allan Webber2011-04-301-6/+19
|
* Commit dummy_settings_module, of course.Christopher Allan Webber2011-04-241-0/+0
|
* setup_celery_from_config tool. Haven't tried if it works, but looks right...Christopher Allan Webber2011-04-241-0/+121