Giter VIP home page Giter VIP logo

django-rq-jobs's People

Contributors

koed00 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-rq-jobs's Issues

Spurious migrations

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.

get_task_display() method is not defined

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.

Not working after the setup according to READ ME

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

image

image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.