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

Fix kraken run -X <task> option to correctly not mark a required task as skipped #138

Merged
merged 4 commits into from
Dec 11, 2023

Conversation

NiklasRosenstein
Copy link
Contributor

  • fmt
  • kraken-build/: tests: Add a unit test for a real-world example of a DAG that failed the expected behavior of TaskGraph.mark_tasks_as_skipped().
  • kraken-build/: fix: Replace Tasks.mark_tasks_as_skipped() with a simpler implementation that also fixes an issues with second-degree tasks being marked as skipped even if they should not be.

NiklasRosenstein and others added 4 commits December 11, 2023 21:39
…AG that failed the expected behavior of `TaskGraph.mark_tasks_as_skipped()`.
…mpler implementation that also fixes an issues with second-degree tasks being marked as skipped even if they should not be.
@NiklasRosenstein NiklasRosenstein changed the title nr/fix exclude subgraph Fix kraken run -X <task> option to correctly not mark a required task as skipped Dec 11, 2023
@NiklasRosenstein
Copy link
Contributor Author

Something we should consider eventually as a follow up: If you mark a task as skipped that is required to run for a successor task (e.g. if it provides an output property), the subsequent task will fail. The error message will be a bit obscure in this case (e.g. "Property value will be known at a later time")

@NiklasRosenstein NiklasRosenstein merged commit ae8917e into develop Dec 11, 2023
@NiklasRosenstein NiklasRosenstein deleted the nr/fix-exclude-subgraph branch December 11, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant