kestra-io / kestra

:zap: Workflow Automation Platform. Orchestrate & Schedule code in any language, run anywhere, 500+ plugins. Alternative to Zapier, Rundeck, Camunda, Airflow...
https://kestra.io
Apache License 2.0
12.98k stars 1.13k forks source link

Feat/workergoup fallback #5779

Closed loicmathieu closed 1 week ago

loicmathieu commented 1 week ago

Fixes #2041

loicmathieu commented 1 week ago

Breaking change

By default, a task configured to run on a worker group where no workers are available will wait forever for the worker to be available. The previous behavior was to fail.

This is configurable, the previous behavior can be implemented with:

  - id: hello
    type: io.kestra.plugin.core.log.Log
    message: Hello World! 🚀
    workerGroup:
      key: wg1
      fallback: FAIL #  possible values are WAIT (default), FAIL or CANCEL
sonarcloud[bot] commented 1 week ago

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarCloud