persist queue state