title: How to pause KafkaJS consumer and retry after sometime
body: <p>I'm using KafkaJS ( <a href="https://kafka.js.org" rel="nofollow noreferrer">https://kafka.js.org</a> ) to connect to a Kafka cluster. My consumers are responsible for processing tasks which can fail at some time and succeed after waiting for a duration (for example, 1 hour).
  Before this duration, any attempt to process any task will result to another failure.</p>
  <p>I tried to use Pause &amp; Resume method as described at <a href="https://kafka.js.org/docs/consuming#a-name-pause-resume-a-pause-resume" rel="nofollow noreferrer">https://kafka.js.org/docs/consuming#a-name-pause-resume-a-pause-resume</a>. However, the consumer restart immediately and keep consuming the failed task again.</p>
  <p>How can I pause consuming messages without committing a failed one and restarting the consumer immediately?</p>