Questions tagged [django-cron]

Django-cron lets you run Django/Python code on a recurring basis proving basic plumbing to track and execute tasks.

Django-cron lets you run Django/Python code on a recurring basis proving basic plumbing to track and execute tasks.

The 2 most common ways in which most people go about this is either writing custom python scripts or a management command per cron (leads to too many management commands!).

Along with that some mechanism to track success, failure etc. is also usually necessary.

GitHub repo: https://github.com/Tivix/django-cron

Documentation: https://django-cron.readthedocs.io/en/latest/

65 questions
0
votes
2 answers

Django custom commend + cron job

I have custom commend: python manage.py checksomething How to run this every two hours? I saw django-cron: #example from doc from django_cron import cronScheduler, Job from MyMailFunctions import check_feedback_mailbox class CheckMail(Job): …
mamasi
  • 915
  • 3
  • 10
  • 17
0
votes
1 answer

How to run django-cron job in exact time

I can't use celery in my project, only django-cron. I need to run my task 2 times a day: at 11:59 A.M. at 11:59 P.M. Can I do it? I found only RUN_EVERY (in mins or secs) variable.
SkyFox
  • 1,805
  • 4
  • 22
  • 33
-1
votes
1 answer

Schedule Task for User 9 Days After Last Refresh Django/Celery

This is in the context of refreshing an access token for a user. Say we have the function refresh_user_token that takes in a CustomUser object as user. def refresh_user_token(user): ... ... return result I'd like for each execution of…
CodeSpent
  • 1,684
  • 4
  • 23
  • 46
-1
votes
1 answer

Send request in certain date and time in django-cron

I want to send one POST request or GET request in a certain date and certain time say date is 1st feb and time is 2:00pm then request should automatically be sent at that date and time. Those date and time are stored in the database. What should be…
-2
votes
1 answer

Curl command doesn't work in config file on AWS

I have a Django web application that is deployed to AWS elastic beanstalk (Python 3.7 running on 64bit Amazon Linux 2/3.1.3). I am trying to run the following config file files: "/usr/local/bin/cron_tab.sh": mode: "000755" owner:…
1 2 3 4
5