Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): flow SLA #5907

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

feat(core): flow SLA #5907

wants to merge 1 commit into from

Conversation

loicmathieu
Copy link
Member

Fixes #5857

First WIP draft prototype, still a lot of work to do.

Example flow:

id: sla
namespace: company.team

inputs:
  - id: string
    type: SELECT
    values:
      - PASS
      - CANCEL
    defaults: PASS

sla:
  - id: maxDuration
    type: MAX_DURATION
    behavior: FAIL
    duration: PT2S
  - id: condition
    type: EXECUTION_CONDITION
    behavior: CANCEL
    condition: "{{inputs.string == 'CANCEL'}}"
 
tasks:
  - id: sleep1
    type: io.kestra.plugin.core.flow.Sleep
    duration: PT1S
  - id: sleep2
    type: io.kestra.plugin.core.flow.Sleep
    duration: PT1S
  - id: sleep3
    type: io.kestra.plugin.core.flow.Sleep
    duration: PT1S

@loicmathieu loicmathieu force-pushed the feat/sla branch 4 times, most recently from 5babf56 to 7826a8c Compare November 21, 2024 17:19
Copy link

sonarcloud bot commented Nov 21, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
27.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@loicmathieu loicmathieu force-pushed the feat/sla branch 5 times, most recently from 14ceeb6 to 405a488 Compare November 22, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To review
Development

Successfully merging this pull request may close these issues.

Add flow-level SLA property
1 participant