SELECTm.*FROMmessenger_messagesmWHERE (m.queue_name=?) AND (m.delivered_atisnullORm.delivered_at<?) AND (m.available_at<=?) ORDER BYavailable_atASCLIMIT1FORUPDATE
SELECTm.*FROMmessenger_messagesmWHERE
(m.queue_name=?)
AND (
m.delivered_atisnullORm.delivered_at<?
)
AND (m.available_at<=?)
ORDER BYavailable_atASCLIMIT1FORUPDATE
SELECTm.*FROMmessenger_messagesmWHERE (m.queue_name='default') AND (m.delivered_atisnullORm.delivered_at<'2025-04-05 06:40:39') AND (m.available_at<='2025-04-05 07:40:39') ORDER BYavailable_atASCLIMIT1FORUPDATE;