fix(cron): Add backoff

This commit is contained in:
2026-04-29 08:19:41 +02:00
parent cf3f5b1491
commit 773504c908
4 changed files with 25 additions and 13 deletions
+3 -3
View File
@@ -46,7 +46,7 @@ data:
if [[ ! -f "${target_file_name}" ]]; then
if wget --spider --quiet "${url}"; then
echo "downloading ${url}"
wget -O "${target_file_name}" "${url}"
wget --tries=5 --waitretry=60 -O "${target_file_name}" "${url}"
else
echo "${target_file_name} $(red 'not found on server')"
fi
@@ -70,7 +70,7 @@ metadata:
namespace: cron
spec:
schedule: 0 13 * * * # Everyday at 13:00, use https://crontab.guru
concurrencyPolicy: "Forbid"
concurrencyPolicy: "Allow"
successfulJobsHistoryLimit: 10
failedJobsHistoryLimit: 3
jobTemplate:
@@ -89,7 +89,7 @@ spec:
- |
nix-env -iA nixpkgs.wget nixpkgs.coreutils nixpkgs.bash nixpkgs.parallel
bash /scripts/download.sh
chown -R 5000:5000 /data/hdd/data/norkyst
chown -R 10000:10000 /data/hdd/data/norkyst
chmod -R g+w /data/hdd/data/norkyst
resources: {}
volumeMounts: