Giter Club home page Giter Club logo

Comments (5)

evenicoulddoit avatar evenicoulddoit commented on July 30, 2024

Hi @anrw - I think our business want something similar. I've already got a fork of Django Cron which adds some other features and I'll probably make something for this soon if you're interested?

from django-cron.

anrw avatar anrw commented on July 30, 2024

Thanks, @evenicoulddoit! I am definitely interested, how can I find it?

from django-cron.

tab-cmd avatar tab-cmd commented on July 30, 2024

@anrw we generally felt log management should be left to the dev. However, ...

@evenicoulddoit We could be interested in implementing something that is default off, but when turned on and running crons it would check for some amount of successful or overall logs defined by the user then delete. Let me know if this is something you'd be interested in contributing to. Otherwise it will go to our wishlist for now.

from django-cron.

tab-cmd avatar tab-cmd commented on July 30, 2024

something like we do with this time based deletion

def clear_old_log_entries():
"""
Removes older log entries, if the appropriate setting has been set
"""
if hasattr(settings, 'DJANGO_CRON_DELETE_LOGS_OLDER_THAN'):
delta = timedelta(days=settings.DJANGO_CRON_DELETE_LOGS_OLDER_THAN)
CronJobLog.objects.filter(end_time__lt=get_current_time() - delta).delete()`

from django-cron.

cveilleux avatar cveilleux commented on July 30, 2024

I've shared a solution that can help with this issue in #144

from django-cron.

Related Issues (20)

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.