From 69366f2414fa77727638b310ce69d0b1983145cf Mon Sep 17 00:00:00 2001 From: Miguel Martinez Trivino Date: Fri, 28 Jul 2023 10:24:15 +0200 Subject: [PATCH] fix(dispatcher): do not fail if credentials are missing Signed-off-by: Miguel Martinez Trivino --- app/controlplane/internal/dispatcher/dispatcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controlplane/internal/dispatcher/dispatcher.go b/app/controlplane/internal/dispatcher/dispatcher.go index 8e9a50b74..800be0957 100644 --- a/app/controlplane/internal/dispatcher/dispatcher.go +++ b/app/controlplane/internal/dispatcher/dispatcher.go @@ -172,7 +172,8 @@ func (d *FanOutDispatcher) initDispatchQueue(ctx context.Context, orgID, workflo creds := &sdk.Credentials{} if dbIntegration.SecretName != "" { if err := d.credentialsProvider.ReadCredentials(ctx, dbIntegration.SecretName, creds); err != nil { - return nil, fmt.Errorf("reading credentials: %w", err) + d.log.Warn("msg", "error reading credentials", "err", err.Error()) + continue } }