Questions tagged [django-crontab]
22 questions
0
votes
1 answer
add django_contrab schedules returns "Unknown command: 'crontab'"
I have configured django-crontab accordingly in my newly installed WSL2, ubuntu. And, when I did run python manage.py crontab add it worked just fine yesterday. Today, I tried to run the command again, and it returns:
Unknown command: 'crontab'
Type…

Samir Ahmane
- 830
- 7
- 22
0
votes
1 answer
django-crontab not working on docker python:3.9-buster image
i am trying to run a cronjob every minute, as a test, on my django app with django_crontab. I tryed running 2 cronjobs, one with django_crontab other with my cron
PART 1 django_crontabs
1- I already installed django_crontab and added in my…

Germano
- 358
- 1
- 2
- 13
0
votes
1 answer
Django_Crontab does not seem to run
hoping I can get some guidance on django crontab.
I have the following set up:
in settings.py:
INSTALLED_APPS = [
'django_crontab',
........
]
#other settings not related to crontab
CRONJOBS = [
('*/1 * * * * ',…

Nicholas Bartlett
- 53
- 6
0
votes
1 answer
How to add django-crontab in docker container with non-rooted user django project
Working on a Django project which is running on docker-container with python:3.9-alpine3.13
FROM python:3.9-alpine3.13
LABEL maintainer=
ENV PYTHONUNBUFFERED 1
COPY ./requirements.txt /requirements.txt
COPY ./app /app
COPY…

Sumit Dhakad
- 63
- 1
- 1
- 8
0
votes
1 answer
Is there any another way to python manage.py crontab run in django server?
i have created a scheduled job in django with django_crontab package. i have added the job. its successfully added but its only get executed whenever i run python manage.py crontab run daeea9e88c171494b1610bdebfasd123 not with runserver command.…

Saran Prasad
- 125
- 2
- 13
0
votes
2 answers
Django-crontab can't make model query
I have a model inside tools app called ApiKeys and tried to update the model in specific time intervels. I used django-crontab for this purpose.
CRONJOBS = [
('*/1 * * * *', 'tools.cron.reset_api_calls','>>logs.log')
]
function -
from .models…

pritam samanta
- 434
- 4
- 10
-1
votes
2 answers
python don´t excecute when start container with crontab
I try to execute a python when the container start.
I use crontab in the container:
crontab -l
@reboot python3.10 /opt/django/manage.py runserver 0.0.0.0:8002
But when I stop and start container with portainer the python didn't execute

marcosam
- 27
- 9