I have a Discord bot that I am trying to set up as an always-on task. The bot works fine if I just run the script manually via a Bash console, but it does not seem to work when I try to set it up as an always-on task. It says it is running, but the only line in the log is Task preparing to start; none of the print statements I set up show up, even though I'm using the -u flag in the command (and have flush=True on all my print statements), and it is not doing anything in the server (though it appears to be online).
Again, if I run the script directly, it operates exactly as intended; the issue is only when I try and make it an always-on task.
In case I have messed something up, the command I have is:
python3.9 -u /home/ThePerfectionist/hub/bots/butlerBot.py
UPDATE: After waiting more than an hour for the log to show up, I did discover an error there related to the path of an external file the code had to load. I have fixed that now and the code seems to be running, but I am still not seeing the logs in a timely manner despite my edits to the print statements.