Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PythonAnywhere scheduler return codes

When I look at my logs from scheduled tasks at PythonAnywhere I see they are full of statements such as:

  • 2012-06-07 11:09:16 -- Completed task, took 11.00 seconds, return code was 0.
  • 2012-06-08 14:41:41 -- Completed task, took 19957.00 seconds, return code was 137.
  • 2012-06-08 17:33:32 -- Completed task, took 5068.00 seconds, return code was 143.
  • 2012-06-07 09:09:06 -- Completed task, took 1.00 seconds, return code was 1.
  • 2012-06-08 17:29:04 -- Completed task, took 0.00 seconds, return code was 126.

What isn't clear to me is what is issuing these return codes. Is it bash? Is it Python? And is there a list of them available?

like image 616
a2j Avatar asked Jan 18 '26 01:01

a2j


1 Answers

PA dev here. We report the return code from the process that is being run and the meaning of the return code is dependent on the process that is being called. Bash has some reserved exit codes listed here: http://tldp.org/LDP/abs/html/exitcodes.html.

In PA, the logs for your scheduled tasks will usually contain more information than the return code can give you.

like image 62
Glenn Avatar answered Jan 20 '26 14:01

Glenn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!