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.
1 | db_consume(db, queue, poll_interval = 500)
|
queue |
The queue object. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.