koed00 / django-rq-jobs Goto Github PK
View Code? Open in Web Editor NEWProvides scheduled jobs management from the Django Admin using Django-RQ
License: MIT License
Provides scheduled jobs management from the Django Admin using Django-RQ
License: MIT License
Django creates AlterField migrations when the choices of a field change. This means that, because of this line:
task = models.CharField(max_length=200, choices=task_list())
Django wants to make a migration every time the task list is updated. I'm wondering if something like
self._meta.get_field_by_name('task')[0]._choices = task_list()
inside __init__
could work instead. That said, get_field_by_name
is about to be deprecated and should probably simply be get_field
.
You are calling this method when you want to print your queue details to stdout, but you didn't define that on your Job model. Hope you will fix it.Thank you.
Hi @Koed00 and @likeon hope you are doing well.
Actually i set up this package in my Project
By following your README and everything I set up
But when i scheduled the Jobs in Django Admin , nothing happens, even I run the beat scheduler in my next terminal.
RQ_JOBS_MODULE = 'modules.testapp.tasks'
tasks.py
from django_rq import job
from .models import Category
@job
def long_running_func():
Category.objects.create(name="TESTC")
return 2000
I checked with Hourly and Once by giving next run on after 3 min or 5 min , or 10 min but nothing works
But when I run directly with django-rq (Job running perfect)
Please help me out what i am missing ?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.