From 5f9abb1c48d161022b2a5089fc4917835b863d0d Mon Sep 17 00:00:00 2001 From: Kevin Su Date: Fri, 5 Apr 2024 15:29:51 -0700 Subject: [PATCH] Change phase to queue on job submit for webapi plugins (#5188) Signed-off-by: Kevin Su --- .../go/tasks/pluginmachinery/internal/webapi/monitor.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flyteplugins/go/tasks/pluginmachinery/internal/webapi/monitor.go b/flyteplugins/go/tasks/pluginmachinery/internal/webapi/monitor.go index c68634d0e0..4edbadcb07 100644 --- a/flyteplugins/go/tasks/pluginmachinery/internal/webapi/monitor.go +++ b/flyteplugins/go/tasks/pluginmachinery/internal/webapi/monitor.go @@ -2,6 +2,7 @@ package webapi import ( "context" + "time" "github.com/flyteorg/flyte/flyteplugins/go/tasks/errors" "github.com/flyteorg/flyte/flyteplugins/go/tasks/pluginmachinery/core" @@ -38,7 +39,7 @@ func monitor(ctx context.Context, tCtx core.TaskExecutionContext, p Client, cach } return state, core.PhaseInfoFailure(errors.CacheFailed, cacheItem.ErrorMessage, nil), nil } - return state, core.PhaseInfoRunning(0, nil), nil + return state, core.PhaseInfoQueued(time.Now(), core.DefaultPhaseVersion, "job submitted"), nil } newPhase, err := p.Status(ctx, newPluginContext(cacheItem.ResourceMeta, cacheItem.Resource, "", tCtx))