Why when adding a cron job , it doesn't work?

I do add a cron job and it is shown when using crontab show but the function in python doesn't get executed and I tried to run the function in the python interpreter and it works , so I guess the problem is in crontab but couldn't resolve it and I am using docker and here is my repo : https://github.com/RachidJedata/Cron_with_django

I did add the cron job as shown below but it doesn't get executed and I have set the log to a file cron.log but it is always empty:

root@143ee1babb0b:/app# python manage.py crontab add adding cronjob: (4500c7eba7f00df4e625ceb624206d74) -> ('* * * * *', 'crypto.cron.fetchCryptoData >> /cron/cron.log 2>&1') root@143ee1babb0b:/app# cat ../cron/cron.log root@143ee1babb0b:/app#

and below is the proof that my cron job is added but it is not being executed : python manage.py crontab show Currently active jobs in crontab: 0352d2a16547ccdea8c7d44dcac8cf1d -> ('* * * * *', 'crypto.cron.fetchCryptoData >> cron/cron.log 2>&1') root@94461ae7b66f:/app#

Вернуться на верх