n8n - 💡(How to fix) Fix Nonstop workflow executions [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#29606Fetched 2026-05-01 05:52:19
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Timeline (top)
commented ×2labeled ×1mentioned ×1subscribed ×1

Error Message

Describe the problem/error/question

What is the error message (if any)?

No error message just non sop executions.

  • error: all

Code Example

{
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -512,
        -224
      ],
      "id": "d2b830f0-7cda-4b9c-b17d-5e7728b63ea1",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://api.squarespace.com/1.0/commerce/orders",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "modifiedAfter",
              "value": "={{$now.minus(10, 'minutes').toUTC()}}"
            },
            {
              "name": "fulfillmentStatus",
              "value": "PENDING"
            },
            {
              "name": "modifiedBefore",
              "value": "={{$now.toUTC()}}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -288,
        -224
      ],
      "id": "7281cb2b-4f1b-4565-bd41-32c668237515",
      "name": "Get Pending Orders",
      "credentials": {
        "httpBearerAuth": {
          "id": "tlusUTYpV8eG1bEg",
          "name": "Squarespace Auth"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nlet orders = []\nfor (const item of $input.all()) {\n  for (const order of item.json.result) {\n    let items = []\n    for (const variant of order.lineItems) {\n      items.push(\n        {\n          name: variant.productName,\n          variant: variant.variantId,\n          sku: variant.sku,\n          quantity: variant.quantity\n        }\n      )\n    }\n      orders.push({\n        order: order.id,\n        items: items,\n        name: order.billingAddress.firstName + ' ' + order.billingAddress.lastName,\n        phone: order.billingAddress.phone,\n        shipping: order.shippingAddress ? {} : order.shippingAddress,\n        subtotal: order.subtotal.value\n      })\n  }\n}\n\nreturn orders"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        16,
        -224
      ],
      "id": "9e231c67-c565-47cd-883e-91141e6c64e4",
      "name": "Reduce Order Data"
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Pending Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Pending Orders": {
      "main": [
        [
          {
            "node": "Reduce Order Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reduce Order Data": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "4f977322ef0d609eb4feaabfbd03e6a72d42d9b5de464e062b972e125dfa997a"
  }
}
RAW_BUFFERClick to expand / collapse
<!-- Please follow the template below. Skip the questions that are not relevant to you. -->

Describe the problem/error/question

Workflow on time based trigger starts executing nonstop. Time trigger is setup for 5 minutes.

What is the error message (if any)?

No error message just non sop executions.

Please share your workflow/screenshots/recording

{
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -512,
        -224
      ],
      "id": "d2b830f0-7cda-4b9c-b17d-5e7728b63ea1",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://api.squarespace.com/1.0/commerce/orders",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "modifiedAfter",
              "value": "={{$now.minus(10, 'minutes').toUTC()}}"
            },
            {
              "name": "fulfillmentStatus",
              "value": "PENDING"
            },
            {
              "name": "modifiedBefore",
              "value": "={{$now.toUTC()}}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        -288,
        -224
      ],
      "id": "7281cb2b-4f1b-4565-bd41-32c668237515",
      "name": "Get Pending Orders",
      "credentials": {
        "httpBearerAuth": {
          "id": "tlusUTYpV8eG1bEg",
          "name": "Squarespace Auth"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nlet orders = []\nfor (const item of $input.all()) {\n  for (const order of item.json.result) {\n    let items = []\n    for (const variant of order.lineItems) {\n      items.push(\n        {\n          name: variant.productName,\n          variant: variant.variantId,\n          sku: variant.sku,\n          quantity: variant.quantity\n        }\n      )\n    }\n      orders.push({\n        order: order.id,\n        items: items,\n        name: order.billingAddress.firstName + ' ' + order.billingAddress.lastName,\n        phone: order.billingAddress.phone,\n        shipping: order.shippingAddress ? {} : order.shippingAddress,\n        subtotal: order.subtotal.value\n      })\n  }\n}\n\nreturn orders"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        16,
        -224
      ],
      "id": "9e231c67-c565-47cd-883e-91141e6c64e4",
      "name": "Reduce Order Data"
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get Pending Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Pending Orders": {
      "main": [
        [
          {
            "node": "Reduce Order Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reduce Order Data": {
      "main": [
        []
      ]
    }
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "4f977322ef0d609eb4feaabfbd03e6a72d42d9b5de464e062b972e125dfa997a"
  }
}

Share the output returned by the last node

<!-- If you need help with data transformations, please also share your expected output. -->

Debug info

core

  • n8nVersion: 2.18.5
  • platform: docker (self-hosted)
  • nodeJsVersion: 24.14.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: -1
  • license: enterprise (production)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10.15; rv:149.0) gecko/20100101 firefox/149.0
  • isTouchDevice: false

Generated at: 2026-04-30T21:15:31.713Z

extent analysis

TL;DR

The workflow execution issue can be resolved by adjusting the schedule trigger configuration to prevent concurrent executions.

Guidance

  • Review the schedule trigger node configuration to ensure it is set up to execute every 5 minutes without overlapping executions.
  • Check the workflow's concurrency setting, which is currently set to -1, allowing unlimited concurrent executions. Consider setting a limit to prevent excessive concurrent runs.
  • Investigate the pruning settings to ensure that old executions are properly cleaned up, which might help prevent the workflow from executing non-stop.
  • Verify that the Get Pending Orders node is not returning an excessively large number of items, causing the workflow to execute repeatedly.

Example

No code example is provided as the issue seems to be related to workflow configuration rather than code.

Notes

The provided workflow configuration and debug information suggest that the issue might be related to the schedule trigger or concurrency settings. However, without more information about the expected behavior and the actual execution pattern, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by adjusting the schedule trigger configuration and concurrency settings to prevent concurrent executions and ensure the workflow runs as expected. This can be done by setting a reasonable concurrency limit and adjusting the schedule trigger to execute at a suitable interval.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Nonstop workflow executions [2 comments, 3 participants]