Skip to content

Concurency breaks when subflow being killed #16579

@NovytskyiD

Description

@NovytskyiD

Describe the issue

Subflow

id: termite_707115
namespace: company.team

sla:
  - id: maxDuration
    type: MAX_DURATION
    duration: PT1M
    behavior: FAIL
    labels:
      sla: miss
      reason: durationExceeded

tasks:
  - id: wait5MinForOtherShards
    type: io.kestra.plugin.core.flow.Sleep
    duration: "PT5M"

Parent flow

id: chinchilla_932032
namespace: company.team

concurrency:
  limit: 1
  behavior: QUEUE

tasks:
  - id: subFlow
    type: io.kestra.plugin.core.flow.Subflow
    flowId: termite_707115
    namespace: company.team

Run multiple copies of the parent flow - only the first execution will respect the concurrency limit, then when executions start to fail, more than 1 copy will be in Running status

Image Image Image

Environment

  • Kestra Version: 1.2.6 K8s + PG

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/backendNeeds backend code changes

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions