Skip to content
Draft
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
6 changes: 6 additions & 0 deletions ci3/source_redis
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ function redis_cli {
}

function redis_setexz {
if [ "$CI_REDIS_AVAILABLE" -ne 1 ]; then
# Drain stdin so the producer doesn't take a SIGPIPE/broken-pipe failure,
# which under set -o pipefail would abort the caller.
cat >/dev/null
return 0
fi
gzip | redis_cli -x SETEX $1 $2 &>/dev/null
}

Expand Down
Loading