Python Code node timing out on n8n Cloud (even with simple code)

Hello n8n Support Team,

I am a member of a client n8n Cloud workspace, and I’m facing a consistent issue with the Python Code node timing out.

Issue summary

The Python Code node times out even when running very simple one-line code, for example:

  • return True

  • 1 + 1

The JavaScript Code node works fine in the same workflow.

Error message

Task request timed out after 60 seconds

Your Code node task was not matched to a runner within the timeout period. This indicates that the task runner is currently down, or not ready, or at capacity, so it cannot service your task.

If you are repeatedly executing Code nodes with long-running tasks across your instance, please space them apart to give the runner time to catch up. If this does not describe your use case, please open a GitHub issue or reach out to support.

Steps to reproduce

  1. Create a new workflow

  2. Add Manual Trigger

  3. Add Python Code node

  4. Use simple code like return True

  5. Execute the workflow

Result: The execution times out after 60 seconds.

Expected behavior

The Python Code node should execute immediately, similar to the JavaScript Code node.

What I’ve tried

  • Updated the n8n version

  • Cleared all executions

  • Tested in a brand-new workflow

  • Tested with minimal Python code

The issue still persists.

This appears to be related to task runner availability or capacity on n8n Cloud, specifically affecting the Python Code node.

Thank you for your support.

Hi @BariVaishnav013435 Though it would be nice to stay within the context but using javascript node by far is the most reliable one and python is in beta so consider javascript. For this timeout this can be caused because of slight misconfiguration in the python runner, if you can contact them to get your runner restarted and in the mean time just use javascript it is just better, hope this helps.

Hey @BariVaishnav013435 make sure that you are returning json, please check the below screenshot:

for sure doing: return True or 1 + 1 will not work, even if you want to do something simple and there is no need for returning any json response, please return any json at the end like:
return {“status”: “ok”}