Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed Apr 4, 2024
1 parent c248248 commit 97b4f0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func RemoveUniqueKeyFromDB(ctx context.Context) {
}
logging := logging.GetLoggerFromContext(ctx)
// we don't use ctx for the database deletion so we avoid getting the cancelled context state, which fails when Del runs
fmt.Println("UID ", database.UniqueRunKey)
deletion, err := database.Client.Del(context.Background(), database.UniqueRunKey).Result()
if err != nil {
panic(err)
Expand Down
2 changes: 1 addition & 1 deletion plugins/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ func Run(ctx context.Context, logger *slog.Logger) {
logger.ErrorContext(ctx, "error adding unique run key", "err", err)
return
}
defer dbFunctions.RemoveUniqueKeyFromDB(ctx)
}
defer dbFunctions.RemoveUniqueKeyFromDB(ctx)

logger.InfoContext(ctx, "handling anka workflow run job")

Expand Down

0 comments on commit 97b4f0b

Please sign in to comment.