View Categories

Good use of Execution purges

1 min read

Every time a task/ETL runs, EAC stores an execution record and (optionally) logs. Over time, this history grows and can impact UI responsiveness and database size.
Purges let you clean old executions and their logs based on clear rules.

Purging removes executions of the selected task and their attached logs (according to your log backend). It does not delete the “purge” executions themselves.


Why purge?


Manual purge (per task)

From a task page:

  1. Open Tasks → {Your task}.
  2. Click Purge the executions of the task.
  3. In the dialog, pick a Purge mode and fill its parameter(s).
  4. Click Launch the purge.

Screenshots (placeholders):

purge manually button

the date picker input format depends on your web browser

Purge modes

  • datePurge all before a date
    Parameter: Purge before date (YYYY-MM-DD).
    Example: delete everything started before 2025-06-01.
  • historyKeep only the last N days
    Parameter: Days to keep (integer).
    Example: keep 30 days of history; remove older ones.
  • totalKeep only the last N executions
    Parameter: Executions to keep (integer).
    Example: keep 200 most recent runs; remove the rest.
  • durationKeep only the longest N
    Parameter: Executions to keep (integer).
    Example: keep 10 longest runs (useful for performance analysis).

The UI asks for the appropriate numeric value or date depending on the selected mode.


Scheduled purge (recommended)

Automate cleanup with the built-in scheduler.

  1. Open Tasks → {Your task} → Cron planification.
  2. Click Add scheduler.
  3. Task type: Purge past executions.
  4. Purge mode: choose one of date / history / total / duration.
  5. Set Begin at / Finish at if needed.
  6. Define the Cron (second, minute, hour, day, month, day-of-week).
  7. Check Schedule activeSave.

Example schedules

  • Nightly, keep last 30 days
    • Mode: history = 30
    • Cron: 0 0 * * * (every day at 00:00)
  • Weekly, keep last 500 executions
    • Mode: total = 500
    • Cron: 0 0 * * 0 (Sundays at 00:00)
  • Monthly, keep the 20 longest (capacity planning)
    • Mode: duration = 20
    • Cron: 0 3 1 * * (1st of month at 03:00)

Choosing a retention strategy

Use one or combine several purge schedules:

  • Production (typical):
    • Keep 30–90 days with history, nightly.
    • Additionally keep last 200–1000 runs with total to preserve dense recent activity.
  • Non-prod (dev/test):
    • Keep 7–14 days with history, nightly.
    • Or last 100–300 runs with total.
  • Performance analysis windows:
    • Monthly duration keeping 10–50 longest executions.

How to size retention

  • Estimate daily runs per task × average row size in log tables.
  • Ensure DB growth stays well below disk thresholds (e.g., <70% usage).
  • Prefer shorter history with richer metrics over unbounded growth.

Operational notes

  • Multi-server: Purges operate at the data layer; results are visible on all nodes.
  • Log backend: If file, purges remove the task’s related files in your log path; ensure the service user has rights to delete.
  • Safety: Start with conservative settings, verify results, then tighten retention.

Related