Skip to content

[FEAT]: Implement (Task-) Garbage Collector #122

Description

@matteokosina

Expected Result:

  • separate job (maybe via special go-routing?)
  • run on a regular basis (-> evaluate a suitable schedule -> every min, 2min, 10sec, ...)
  • logic should something similar to this pseudo-code:
for every task in db:{
   if task.status == successful || task.status == failed{
       if (task.created + task.retention) < Date.now{ // if retention is in past
           remove(task)
       }
   }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions