Skip to content

Memory leak in Sensor #3613

@grograxa

Description

@grograxa

Describe the bug
There appears to be a memory leak in the Sensor component when triggering Argo Workflows. In a HA setup the leader memory usage continually increases until it is OOM killed. The standby memory usage remains constant.

To Reproduce
Steps to reproduce the behavior:

  1. Deploy a Sensor that triggers an Argo Workflow. Example triggers definition:
triggers:
  - template:
      argoWorkflow:
        operation: submit
        parameters:
          - dest: spec.arguments.parameters.#(name=="message").value
            src:
              dataKey: body
              dependencyName: example
        source:
          resource:
            apiVersion: argoproj.io/v1alpha1
            kind: Workflow
            metadata:
              generateName: example-workflow-
            spec:
              arguments:
                parameters:
                  - name: message
                    value: Will be replaced with SQS payload
                  - name: env
                    value: dev
              workflowTemplateRef:
                name: example
      name: example
  1. Send event that triggers the sensor
    Expected behavior
    Sensor memory usage is consistent and does not grow over time.

Screenshots

Image

Environment (please complete the following information):

  • Kubernetes: 1.32
  • Argo: 3.6.7
  • Argo Events: 1.9.6

Additional context
Add any other context about the problem here.


Message from the maintainers:

If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions