Skip to content

Commit

Permalink
rename GetDeckStatus
Browse files Browse the repository at this point in the history
Signed-off-by: Future-Outlier <[email protected]>
  • Loading branch information
Future-Outlier committed Dec 18, 2024
1 parent 8d1d0e4 commit 31853bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flytepropeller/pkg/controller/nodes/task/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (t Handler) fetchPluginTaskMetrics(pluginID, taskType string) (*taskMetrics
return t.taskMetricsMap[metricNameKey], nil
}

func IsDeckEnabled(ctx context.Context, tCtx *taskExecutionContext) (DeckStatus, error) {
func GetDeckStatus(ctx context.Context, tCtx *taskExecutionContext) (DeckStatus, error) {
template, err := tCtx.tr.Read(ctx)
if err != nil {
return DeckUnknown, regErrors.Wrapf(err, "failed to read task template")
Expand Down Expand Up @@ -548,7 +548,7 @@ func (t Handler) invokePlugin(ctx context.Context, p pluginCore.Plugin, tCtx *ta
// The deck should be accessible even if the task is still running or has failed.
// It's possible that the deck URI may not exist in remote storage yet or will never exist.
// So, it is console's responsibility to handle the case when the deck URI actually does not exist.
deckStatus, err := IsDeckEnabled(ctx, tCtx)
deckStatus, err := GetDeckStatus(ctx, tCtx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 31853bb

Please sign in to comment.