Skip to content

use getattr to access task_def.disable_deck in entrypoint#1724

Merged
cosmicBboy merged 2 commits into
masterfrom
bugfix/3841
Jul 6, 2023
Merged

use getattr to access task_def.disable_deck in entrypoint#1724
cosmicBboy merged 2 commits into
masterfrom
bugfix/3841

Conversation

@cosmicBboy

@cosmicBboy cosmicBboy commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

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
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

Development

Successfully merging this pull request may close these issues.

[BUG] Task templates are broken by deck upload logic

2 participants