The table purgeExpiredBackgroundTasks deletes from under the background-task
TTL — the production anchor the schema guard cross-checks the
background-task-ttl retention declaration against. It is the background-task
counterpart to RUN_TTL_PURGE_TABLES. One table: the TTL rides completedAt on
mastra_background_tasks alone, no cascade.
The table
purgeExpiredBackgroundTasksdeletes from under the background-task TTL — the production anchor the schema guard cross-checks thebackground-task-ttlretention declaration against. It is the background-task counterpart to RUN_TTL_PURGE_TABLES. One table: the TTL ridescompletedAtonmastra_background_tasksalone, no cascade.