-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
post-upgrade - no such column: django_q_schedule #634
Comments
I downgraded django-q back to 1.3.5 and everything is working again. Not sure what the issue is exactly. |
PR #555 includes a migration file. After updating to the latest version, did you run @youri-ds if you're having a problem during from django_q.management.commands.qcluster import Command as BaseCommand
from django_q.models import Schedule
from example import tasks
class Command(BaseCommand):
def handle(self, *args, **kwargs):
ensure_schedule_updated()
super().handle(*args, **kwargs)
def ensure_schedule_updated():
def path(func):
return f"{func.__module__}.{func.__name__}"
Schedule.objects.update_or_create(
name="run_debug_print",
defaults={
"func": path(tasks.debug_print),
"schedule_type": Schedule.MINUTES,
"minutes": 5,
},
) |
Hi Adam, I think your are right because I have some initialization code. |
Hello,
I am getting the following error after upgrading my system
no such column: django_q_schedule.cluster
I have made no other code changes. When trying to open the Scheduled Tasks from the admin panel, I get the error above. The qcluster console shows the error every 30s, in the shell, trying to run
from django_q.models import * Schedule.objects.all()
sqlite3.OperationalError: no such column: django_q_schedule.cluster
It stopped working after my upgrades but I did them all together (rookie mistake) so I am not sure which is the cause. Wondering if I need to roll back of if there's an easy solution.
Thank you!
The text was updated successfully, but these errors were encountered: