This guide helps you identify the root cause of unexpected performance issues and provides solutions. This page covers common performance spike patterns, a systematic diagnostic process, and immediate mitigation steps to reduce resource consumption.
For proactive guidance on designing efficient automations, see Performance best practices.
Below are common patterns to help identify and diagnose performance issues with automations.
Symptoms: The automation ran many times in a short period, generating unexpected resource consumption. For example, an automation with a large number of object updates can generate many automation runs, each potentially triggering downstream effects.
Root cause: An object type updates very frequently, and the automation is configured with an "on object update" condition without a time-based cap. Often this happens when an automation that was previously paused gets unpaused.
How to fix:
Symptoms: Multiple automations are running in sequence, with execution counts growing exponentially.
Root cause: Automations form a chain where each automation edits objects, triggering the next automation in the sequence:
Automation A edits objectsAutomation B, which processes each object separatelyAutomation B edits more objects, triggering Automation CHow to fix:
Symptoms: Function execution time is high, and resource consumption scales poorly with object count.
Root cause: Functions contain loops that query the Ontology once per iteration instead of processing objects in bulk.
How to fix:
For comprehensive function optimization guidance, see Optimize function performance.
Symptoms: A single function is being called many times, often recursively.
Root cause: A function edits objects, and those edits trigger the same automation that calls the function, creating a loop. Without guards in place, this can continue until manually stopped.
How to fix:
To investigate a performance spike, follow these steps:
Check automation execution history: Open the automation and review the execution history. Key questions to consider:
Identify condition frequency: Examine the condition configuration and object update patterns. Key questions to consider:
Trace automation chains: Use Autopilot or Workflow Lineage to understand dependencies. Key questions to consider:
Review function implementation: Examine the functions being called by the automations. Key topics to investigate:
Look for recursive conditions: Determine if automations are triggering themselves. Key questions to consider:
When a performance or resource consumption spike is found, take these actions in priority order:
Stop the bleeding
Assess impact
Apply quick fix
Monitor recovery
Below are several resources for diagnostic information.