I need to run a script hourly. The script involves scraping and database operations. It runs fine when running from the bash. When scheduled the task shows "Completed task, took 6.00 seconds, return code was 126." but the logging or the database operations does not seem to be working.