Closed frsyuki closed 8 years ago
Digdag should have a background procedure that deletes old sessions periodically. it's not implemented but expected by design.
implementation idea 1:
state_flags
and obsolete_name
to projects
table.projects.name
nullable.name
to obsolete_name
.name
.state_flags
.state_flags
is DELETED (at ProjectControl.insert* methods because having ProjectControl ensures that the record is locked with FOR UPDATE).This architecture makes it easy to have UNIQUE INDEX on name column. Looking up a project by name doesn't return logically deleted projects but looking up by id returns one. This is a naturally expected behavior.
Future plan 1:
Deleting a project should do this:
Implementation limitations are: