You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this happens, the problem can be solved by removing obsolete index entries in the
database by running the below script. The script iterate through the index stored
in encore-jobs and verifies that the corresponding job still exists. If not, the index
entry is removed.
#!/bin/bash
rediscli=redis.cli
while getopts "c:n:" arg
do
case $arg in
c)
rediscli="$OPTARG"
;;
*)
;;
esac
done
shift $((OPTIND-1))
echo $rediscli
for id in $($rediscli -c smembers encore-jobs | cut -d' ' -f2)
do
exists=$($rediscli -c EXISTS encore-jobs:${id})
echo "${id}: ${exists}"
if [[ $exists == "0" ]]
then
echo "removing"
$rediscli srem encore-jobs ${id}
fi
done