Compare commits

...

2 Commits

Author SHA1 Message Date
shreyas-goenka 35f8fa716a
Merge df97a5bb93 into 1508d65c4c 2024-11-14 21:49:55 +05:30
Shreyas Goenka df97a5bb93
Remove unnecessary API call in pipeline runner 2024-10-22 01:29:04 +02:00
1 changed files with 0 additions and 5 deletions

View File

@ -90,11 +90,6 @@ func (r *pipelineRunner) Run(ctx context.Context, opts *Options) (output.RunOutp
// Include resource key in logger. // Include resource key in logger.
ctx = log.NewContext(ctx, log.GetLogger(ctx).With("resource", r.Key())) ctx = log.NewContext(ctx, log.GetLogger(ctx).With("resource", r.Key()))
w := r.bundle.WorkspaceClient() w := r.bundle.WorkspaceClient()
_, err := w.Pipelines.GetByPipelineId(ctx, pipelineID)
if err != nil {
log.Warnf(ctx, "Cannot get pipeline: %s", err)
return nil, err
}
req, err := opts.Pipeline.toPayload(r.pipeline, pipelineID) req, err := opts.Pipeline.toPayload(r.pipeline, pipelineID)
if err != nil { if err != nil {