diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-13 12:21:06 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-08-13 12:21:06 -0500 |
commit | 6788b4123ef00241d6b6c80ca93d655e4307d6e3 (patch) | |
tree | 83510de6a4c8fc0852e539196c82c5020a5d58ed /docs/source/codebase.rst | |
parent | 4a477e246d07a4c26f084db2596caf3310b78609 (diff) | |
download | mediagoblin-6788b4123ef00241d6b6c80ca93d655e4307d6e3.tar.lz mediagoblin-6788b4123ef00241d6b6c80ca93d655e4307d6e3.tar.xz mediagoblin-6788b4123ef00241d6b6c80ca93d655e4307d6e3.zip |
Capture and properly handle errors.
Handled in several places:
- In the run() of the ProcessMedia itself for
handled (BaseProcessingFail derived) errors (best to do these not
in on_failure because the errors are highlighted in celeryd in a
way that looks inappropriate for when the errors are well handled)
- In ProcessMedia.on_failure() for all other errors
- In the submit view where all exceptions are caught, media is marked
at having failed, then the error is re-raised. (The reason for
this is that users running in "lazy" mode will get errors
propagated by celery and so on_failure won't run for them.)
Diffstat (limited to 'docs/source/codebase.rst')
0 files changed, 0 insertions, 0 deletions