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

use getattr to access task_def.disable_deck in entrypoint #1724

Merged
merged 2 commits into from
Jul 6, 2023

Conversation

cosmicBboy
Copy link
Contributor

@cosmicBboy cosmicBboy commented Jul 6, 2023

Fixes flyteorg/flyte#3841

TL;DR

#1693 introduced a bug in task templates like SQlite3Task. This PR fixes an issue in the execution entrypoint that assumes the all task objects have the disable_deck attribute.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

Use the getattr function to get disable_deck, and return False if not present.

Tracking Issue

https://github.com/flyteorg/flyte/issues/

Fixes flyteorg/flyte#3841

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
eapolinario
eapolinario previously approved these changes Jul 6, 2023
Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
@cosmicBboy cosmicBboy merged commit ca1608e into master Jul 6, 2023
126 checks passed
fg91 pushed a commit that referenced this pull request Aug 15, 2023
* use getattr to access task_def.disable_deck in entrypoint

Fixes flyteorg/flyte#3841

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>

* invert conditional

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>

---------

Signed-off-by: Niels Bantilan <niels.bantilan@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants