l radio-news: retry every step 5 times
This commit is contained in:
parent
c1d8815a92
commit
9e1b663d5b
@ -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";
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user