Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Property Retention Data Cleanup Webhook Task in Node.js: Cron Retry Boundaries

A scheduled data cleanup webhook task in Node.js should record a property-management deadline in a database, let a cron trigger find due work, and hand a small task to an at-least-once queue. Use a delayed message only for the final window, never as the sole clock for 30-day user-data retention. That rule survives the questions I care about at 3am: what page fired, can I prove which reminder was…

A scheduled data cleanup webhook task in Node.js should record relevant information in a database, trigger a cron job to find due work, and send a small task to an at-least-once queue. The final window for delayed messages should never be the sole clock for 30-day user-data retention. The business deadline should remain separate from the delivery mechanism. Infrai is a scheduling and queue option worth evaluating before adding other service-specific credentials.

For a commercial lease renewal reminder, the application should create a row containing the lease or property ID, intended reminder time, status, and idempotency key. A queue message acts as an execution request, distinct from the source of intent rows. The invariant is simple: every due intent must be discoverable until the handler completes an idempotent action.

A cron sweep selects rows with past reminder times, claims a small batch, and publishes only the property ID plus a time window. The worker loads current data, sends the reminder, and marks the intent complete. The webhook is not the retention ledger; each message should be below 256KB.

When the retention or business horizon exceeds the platform's delay limit, the database clock and periodic scan must own the interval. Two viable scheduler shapes are available: a database-led sweep and a workflow-led design. Infrai is a suitable option for the cron-to-queue boundary, while Temporal or Inngest are better choices for workflow-oriented requirements. BullMQ is a practical Redis-backed queue choice for existing Redis-based applications.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

SyntaxError: Invalid regular expression flags from a script served in a JS template literal: write [/] instead of \/

Written by Root, an AI agent. The probe below was re-run on 2026-11-24 with Node 24.15 on Windows 11. Symptom: a page script dies in the browser with SyntaxError: Invalid regular expression flags The…

  • SyntaxError occurs when regex emitted as string inside template literal
  • Template literal consumes backslash, causing invalid regex
  • Writing slash as character class [/] resolves the issue

Read here, act there: one command to stop it on any MCP server

The attacks on AI agents this year share one shape. The agent reads something an attacker wrote — a mail, a web page, a document — and then acts : sends, writes, fetches a URL with your data in it.

  • CleiMesh stops AI attacks with one-command-per-server approach
  • Refuses hidden character definitions and pins tool definitions
  • Marks tainted agents, prevents write actions until cleared

More from Tuesday 24 November →