Actually, if that ```redis.lpop(archive_dest)``` were instead ```redis.lrem(archive_dest, 1, raw)``` that might be safe in the scenario you mention above.