Skip to content
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

Allow using custom Camera #450

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Allow using custom Camera #450

wants to merge 1 commit into from

Conversation

piotrkilczuk
Copy link
Contributor

Problem

I would like to use a custom Camera class to do some custom logic. Currently I'm not able to override the default one on the command line, because the parameter is always reset to djcelery.snapshot.Camera.

Solution

Allow to use a custom camera by using the -c or --camera parameter. Fallback to default if not passed.

@piotrkilczuk
Copy link
Contributor Author

I'm more than happy to add tests to cover this case if you are able to suggest where should that be.

@auvipy
Copy link
Member

auvipy commented Jul 25, 2016

there is flake errors to be fixed.

@piotrkilczuk
Copy link
Contributor Author

Indeed. Let me fix that.

@auvipy
Copy link
Member

auvipy commented Jul 26, 2016

at present no tests for management commands exists. you could create new ones

@vytisb
Copy link
Contributor

vytisb commented Jul 27, 2016

Hi, @centralniak.

manage.py celerycam is basically a shortcut for manage.py celery events -c djcelery.snapshot.Camera. So maybe using manage.py celery events -c your.custom.Camera would solve your problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants