Job flow 29 · task:activity-log-cleanup

Job flow 29 · task:activity-log-cleanup A workflow diagram generated by Archify. 01 / Queued by EX / Stops, skips or waits 03 / repeatableWorker 04 / Writes, messages or next jobs Every day at 00:00 · cron 0 0 * * * · Queued by Every day at 00:00 cron 0 0 * * * Database failure → throw · three queue attempts · Stops, skips or waits Database failure → throw three queue attempts Capture execution time · new Date() · repeatableWorker Capture execution time new Date() Calculate retention cutoff · today minus 90 days · repeatableWorker Calculate retention cutoff today minus 90 days Delete old activity logs · createdAt < cutoff · repeatableWorker Delete old activity logs createdAt < cutoff Log deleted count · complete; no email · repeatableWorker Log deleted count complete; no email Old logs removed · newer rows retained · Writes, messages or next jobs Old logs removed newer rows retained exception done Legend Agent logic Policy Tool action Context / trace