db_consume function

Consume a message from a message queue

Consume a message from a message queue

This is the blocking version of try_consume(). Currently it just polls twice a second, and sleeps between the polls. Each poll will also trigger a crash cleanup, if there are workers running.

db_consume(db, queue, poll_interval = 500)

Arguments

  • queue: The queue object.
  • Maintainer: Gábor Csárdi
  • License: MIT + file LICENSE
  • Last published: 2019-03-08