Skip to content

Allow using custom Camera #450

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

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?

@auvipy auvipy requested a review from Copilot May 13, 2025 09:10
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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