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

celerybeat configuration impossible using .ini #14

Closed
hynek opened this Issue Mar 28, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@hynek
Copy link
Contributor

hynek commented Mar 28, 2012

If pyramid_celery is included, celeryconfig.py is ignored. That’s bad, because in order to configure celerybeat, one has to import modules like timedelta or crontab, otherwise the eval() while parsing fails.

I haven’t found a way to achieve that so I claim that pcelerybeat is mostly useless – or did I miss something?

I don’t really have an off-hand solution to this problem – maybe add a configuration option with dependencies that are needed in the eval() context?

@sontek

This comment has been minimized.

Copy link
Owner

sontek commented Dec 26, 2014

I've rewrote pyramid_celery to now allow using celeryconfig so that this works perfectly now

@sontek sontek closed this Dec 26, 2014

@sontek

This comment has been minimized.

Copy link
Owner

sontek commented Dec 27, 2014

@hynek I've been thinking about how to support this in an ini for awhile and it just doesn't seem like it would make much sense. I'm discussing it over here if you'd like to discuss:

#36 (comment)

@sontek

This comment has been minimized.

Copy link
Owner

sontek commented Dec 28, 2014

@hynek I introduced celerybeat ini configuration in the latest master. Please see the README and let me know if that looks cleaner:

[celerybeat:task2]
# Execute every 30 seconds
task = myapp.tasks.Task2
type = timedelta
schedule = {"seconds": 30}
args = [16, 16]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment