Docs /Wrangler

Auto-close and cron

Auto-closing pending tickets

Pending means the ticket is waiting on the customer. Plenty of customers never answer — their problem went away — and those tickets sit in Pending forever.

Set Settings → Automation → Auto-close pending tickets after (days) and any ticket that has been Pending with no new message for that long is closed. It is off (0) by default.

  • Only Pending tickets are closed. New and Open tickets are waiting on you, and closing them automatically would hide work nobody has done.
  • No email is sent. The customer's ticket page shows it as Closed, and replying reopens it, from the web or by email.
  • The ticket's history says Closed automatically after 14 days waiting on the customer.

When it runs

Wrangler checks at most once an hour, triggered by people using the site: any page with a Wrangler tag, and any Wrangler page in the control panel. On a site with steady traffic that is all you need.

For exact timing on a quiet site, call the cron URL shown in the setting's description every hour:

0 * * * * curl -s "PASTE-THE-CRON-URL-HERE" > /dev/null

The URL carries a secret key and only runs the maintenance. It answers with a line of JSON saying how many tickets it closed.