Skip to content

Conversation

@Nataneljpwd
Copy link
Contributor

Any executor may cause a negative duration of a task

This PR fixes an issue, where if a task's state is changed externally (which sets a task's end_data), while the task was either starting to run or already in the queue of the executor, it would still set the start_date, this makes sure we skip the task run, along with skipping all checks, while not allowing for negative runtime, and saving compute in k8s executor.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)
  • No

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Executors-core LocalExecutor & SequentialExecutor area:providers area:task-sdk provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant