Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/artifact-cas/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright 2024 The Chainloop Authors.
// Copyright 2024-2026 The Chainloop Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -118,6 +118,8 @@ func main() {
panic(err)
}

_ = logger.Log(log.LevelInfo, "msg", "starting artifact-cas service", "version", Version)

flush, err := initSentry(&bc, logger)
defer flush()
if err != nil {
Expand Down
14 changes: 8 additions & 6 deletions app/controlplane/cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ func main() {

logger = log.NewFilter(logger, log.FilterFunc(filterSensitiveArgs))

_ = logger.Log(log.LevelInfo, "msg", "starting control-plane service", "version", Version)

flush, err := initSentry(&bc, logger)
defer flush()
if err != nil {
Expand Down Expand Up @@ -177,17 +179,17 @@ func main() {
if app.casBackendChecker != nil {

go app.casBackendChecker.Start(ctx, &biz.CASBackendCheckerOpts{
CheckInterval: 30 * time.Minute,
InitialDelay: initialDelay,
OnlyDefaultsOrFallbacks: toPtr(true),
CheckInterval: 30 * time.Minute,
InitialDelay: initialDelay,
OnlyDefaultsOrFallbacks: toPtr(true),
})

// Start the background CAS Backend checker for ALL backends (every 24 hours)
// Start around 24h mark to avoid overlap with default checker
go app.casBackendChecker.Start(ctx, &biz.CASBackendCheckerOpts{
CheckInterval: 24 * time.Hour,
InitialDelay: (24 * time.Hour) + jitter,
OnlyDefaultsOrFallbacks: toPtr(false),
CheckInterval: 24 * time.Hour,
InitialDelay: (24 * time.Hour) + jitter,
OnlyDefaultsOrFallbacks: toPtr(false),
})
}

Expand Down
Loading