summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-02-08 18:03:58 +0100
committerlassulus <lassulus@lassul.us>2022-02-08 18:03:58 +0100
commit9e1b663d5b0435b76210cb7b3b840ae0523f5d22 (patch)
tree27b2b358d1bb9861f711e21a9adcc192c7c2cab1
parentc1d8815a92f9b0e8d139d4be3bee960170536adc (diff)
l radio-news: retry every step 5 times
-rw-r--r--lass/2configs/radio-news.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/lass/2configs/radio-news.nix b/lass/2configs/radio-news.nix
index 8e48009a8..01a3c8e1a 100644
--- a/lass/2configs/radio-news.nix
+++ b/lass/2configs/radio-news.nix
@@ -32,12 +32,13 @@ in
send_to_radio
weather_report
pkgs.curl
+ pkgs.retry
];
script = ''
set -efu
- newsshow |
- curl -SsG http://tts.r/api/tts --data-urlencode 'text@-' |
- send_to_radio
+ retry -t 5 -d 10 -- newsshow |
+ retry -t 5 -d 10 -- curl -SsG http://tts.r/api/tts --data-urlencode 'text@-' |
+ retry -t 5 -d 10 -- send_to_radio
'';
startAt = "*:00:00";
};