Comments (4)
Is this on a clean install or are you upgrading from a previous version of carrot?
from django-carrot.
The root cause here is that you are trying to create a ScheduledTask object with a non-unique task_name
value. By default, when you create a new ScheduledTask object using the carrot.utilities.create_scheduled_task
function, if you do not provide the task_name
value, this will automatically default to the name of the task function you are trying to schedule (e.g. my_app.my_tasks.my_task
). So, if you already have a ScheduledTask object for one function, and you try to create another one for the same function, without specifying the task_name
parameter, this will cause this error.
Solution: Use the task_name
parameter when using carrot.utilities.create_scheduled_task
:
create_scheduled_task('my_app.my_tasks.task`, {'seconds': 5}, task_name='something unique', **task_kwargs)
I'm going to add validation to that function for version 1.3 so that its more clear in future what the issue is.
The version number thing is a weird issue that seems to have arisen from CI, this will also be fixed in 1.3
from django-carrot.
Fixed with #97
from django-carrot.
Thanks for the reply, and a great project!
Is this on a clean install or are you upgrading from a previous version of carrot?
A fresh install & in a new virtualenv.
Solution: Use the task_name parameter when using carrot.utilities.create_scheduled_taskβ¦
Thanks, I had seen this in the docs and was looking forward to trying it out! The problem was that the version of carrot installed via pip install django-carrot
didn't include the task_name
kwarg from 5bdfc14. Anyway, it has been 'fixed' by telling pip which changeset to install, e.g.:
pip install git+git://github.com/chris104957/django-carrot.git@ded8daa8edf66ffe06829ec064df15aa676c5567#egg=django-carrot
from django-carrot.
Related Issues (20)
- Python executable/manage.py path issues starting carrot_daemon from outside a virtualenv/with supervisord HOT 1
- Support for newer psutil versions HOT 1
- carrot_daemon start command not working - pid file access
- Error on carrot service stopping HOT 2
- django-carrot.com down HOT 2
- publish_message throws Unable to identify task type because key was not found in the mesasge header: '' HOT 3
- starting daemon fails with python 2 HOT 1
- Add support for Django 2.2
- manage.py carrot command not referencing default_broker
- How to use carrot in deployment.
- Running first command to start deamon
- Windows 10 psutil.AccessDenied error
- Migration missing for `scheduledtask.task_name`
- django-carrot monitor doesn't show any task or queu
- Pip install fails due to older version of sphinx_bootstrap_theme dependency's utilization of use_2to3, which is deprecated by setuptools HOT 3
- links on site are broken
- Context Problem with Database HOT 2
- Add purge button to the monitor HOT 1
- Dynamically-created ScheduledTask ignored HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-carrot.