Forums

Running tasks not working as expected.

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.

Error code 126 means that a file could not be found or that it was supposed to be executable, but wasn't. There will be a message in the logs that says what could not be found.