From 7c76825813527960739c3c2468b55e5d77a4b6e5 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Fri, 16 Jan 2026 16:07:35 +1100 Subject: [PATCH] delay daily aggregation job by 10 minutes --- .drone.yml | 7 ++++++- main.go | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index c40e883..e680bea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -50,13 +50,18 @@ steps: image: ghcr.io/goreleaser/nfpm environment: TZ: UTC + NFPM_VERSION: '${DRONE_BUILD_NUMBER}' volumes: - name: shared path: /shared commands: - cp /shared/vctp-linux-amd64 ./build/vctp-linux-amd64 #- find . - - nfpm package --config vctp.yml --packager rpm --target ./build/ --version ${DRONE_BUILD_NUMBER} + - VERSION=$(grep '^version:' vctp.yml | awk '{print $2}' | tr -d '"') + - VERSION=${VERSION#v} + - export NFPM_VERSION=$VERSION + - echo "nfpm version: ${NFPM_VERSION}" + - nfpm package --config vctp.yml --packager rpm --target ./build/ - ls -lah ./build/ - name: semver diff --git a/main.go b/main.go index ef08d2e..ba2683c 100644 --- a/main.go +++ b/main.go @@ -197,7 +197,7 @@ func main() { startsAt4 := time.Now().Add(cronAggregateFrequency) if cronAggregateFrequency == time.Hour*24 { now := time.Now() - startsAt4 = time.Date(now.Year(), now.Month(), now.Day()+1, 0, 0, 0, 0, now.Location()) + startsAt4 = time.Date(now.Year(), now.Month(), now.Day()+1, 0, 10, 0, 0, now.Location()) } job4, err := c.NewJob( gocron.DurationJob(cronAggregateFrequency),