This is an example tree of the SFTP directories and the REQUIRED ownership
- /path -> root
- /path/to -> root
| import re | |
| import fileinput | |
| import os, fnmatch | |
| import glob | |
| from pathlib import Path | |
| # https://stackoverflow.com/questions/41571281/easy-way-to-set-on-delete-across-entire-application | |
| # https://stackoverflow.com/questions/11898998/how-can-i-write-a-regex-which-matches-non-greedy |
This is an example tree of the SFTP directories and the REQUIRED ownership
.env fileAvoid processing unknown or not allowed hosts and prevent host spoofing
# Avoid passing unknown or not allowed hosts
print() and logger.debug() does not the logs in the console, either use logger.info(), logger.warning(), logger.error()
Always check the init.py file of the app that initializes celery, it MUST contain this:
Otherwise tasks uses infinite time 😫