[WIP]Setup django-crontab #5410
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Setup and run cron job:
git checkout setup-django-cron-jobpyenv virtualenv 3.9.13 venv-cronpip install -r requirements.txtnpm i&npm run buildcd fecand./manage.py migratepython manage.py crontab add(cron job is set to run every 20 minutes for testing purpose)python manage.py crontab showpython manage.py crontab removevar/mailfolder. log name isfor example: log file on my mac is /var/mail/pkasireddy. open pkasireddy log file in vscode or any other editor
Other helpful commands:
Todo#
Working on getting the logs write to a file (scheduler.log)