Forums

Tasks issue

In always-on tasks i had an issue.

This is the tasks, it's running command of the background tasks "workon alrabwah_market_dev && python3 /home/ziadsindion/al-rabwah-market-dev/manage.py process_tasks"

the error in the task console is google.auth.exceptions.DefaultCredentialsError: File credentials.json was not found, but this file exists in the root of the project.

And when i run this command in terminal it works well "python manage.py process_tasks"

It probably a problem of working directory. In your task command, try cd'ing to the directory with the credentials.json then running the manage.py script from there