Forums

Return code was 137.

/bin/bash: line 1: 24 Killed python /bin/run_scheduled_task.py Completed task, took 35125.09 seconds, return code was 137.

The scheduled task that was working normally is coming out as '139' code from August 3rd. The source code hasn't changed, can you tell me what could be the cause? If I run it manually, it stops within a few seconds and does not proceed. There is no strange code in the part where it stops. This is a repetition of the code below, and the url is also normal. url = requests.get(search_url, headers=headers) soup=bs(url.content, 'html.parser')

Thank you for your reply.

Could you add some more logging to the task to establish what is consuming so much time? (If you use print add flush=True to the call). We have a time limit for the tasks (I see a lot of your tasks killed after reaching this limit in our logs). Also -- since your task is taking up so much time, maybe you should consider switching to Always-on tasks instead?