properly use max_attempts and reschedule_at #9