SELECTm.*FROMmessenger_messagesmWHERE (m.queue_name=?) AND (m.delivered_atisnullORm.delivered_at<?) AND (m.available_at<=?) ORDER BYavailable_atASCLIMIT1FORUPDATESKIPLOCKED
SELECTm.*FROMmessenger_messagesmWHERE
(m.queue_name=?)
AND (
m.delivered_atisnullORm.delivered_at<?
)
AND (m.available_at<=?)
ORDER BYavailable_atASCLIMIT1FORUPDATESKIPLOCKED
SELECTm.*FROMmessenger_messagesmWHERE (m.queue_name='low_priority') AND (m.delivered_atisnullORm.delivered_at<'2025-01-16 11:18:17') AND (m.available_at<='2025-01-16 12:18:17') ORDER BYavailable_atASCLIMIT1FORUPDATESKIPLOCKED;