← All use cases

Orders stuck in processing

Paid orders that haven't left the warehouse after 48 hours.

Category
Fulfillment
Team
Logistics
Priority
medium
Runs
Every hour

Why watch it

The customer has paid and is waiting. Telling them about a delay before they ask is the difference between a delay and a cancellation.

The query

Every row it returns is a case to handle. Run it every so often and Pulso opens a signal only for rows it has not seen before.

SQL Every hour
SELECT o.number AS order_number, c.name AS customer, o.warehouse, o.carrier,
       o.total_eur, o.created_at + interval '48 hours' AS stuck_since
FROM orders o
JOIN customers c ON c.id = o.customer_id
WHERE o.status = 'processing'
  AND o.created_at < now() - interval '48 hours'
Unique by order_number

The signal

Its title uses the row’s columns, so the inbox reads like a to-do list:

Order {{ order_number }} stuck in {{ warehouse }}

medium Logistics

Set up “Orders stuck in processing” in minutes

Connect your database, paste the query, adjust the table names and pick who handles the signals. Free during early access.