Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

GetLaunchPlan checks for NotFound gRPC code rather than nil launchplan #441

Merged
merged 1 commit into from
Jun 6, 2022

Conversation

hamersaw
Copy link
Contributor

TL;DR

When executing a launchplan that does not exist propeller checks if the err != nil before checking if the lp == nil here. So when the launchplan doesn't exist it returns a RemoteSystemError which uses backoff retries rather than failing right away as a user error would. This PR checks the gRPC status code to correctly label the launchplan NotFound.

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

^^^

Tracking Issue

fixes flyteorg/flyte#2404

Follow-up issue

NA

@codecov
Copy link

codecov bot commented May 18, 2022

Codecov Report

Merging #441 (1cc24be) into master (24e93cd) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@hamersaw hamersaw marked this pull request as ready for review May 18, 2022 14:36
@hamersaw hamersaw requested review from kumare3 and EngHabu as code owners May 18, 2022 14:36
@hamersaw hamersaw merged commit df5c201 into master Jun 6, 2022
@hamersaw hamersaw deleted the bug/failed-launchplan-retrieval-retries branch June 6, 2022 22:32
eapolinario pushed a commit to eapolinario/flytepropeller that referenced this pull request Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] gRPC error codes are not correctly parsed when retrieving launchplan
2 participants