it-at-m / digiwf-core

central workflow automation and integration platform based on the free process framework Camunda.
MIT License
19 stars 7 forks source link

Remove s3 postgres #1264

Open simonhir opened 5 months ago

simonhir commented 5 months ago

Currently the S3-integration has a PostgreSQL db for cleaning up files. This function is directly supported from S3 via lifetime. Therefore the separate db functionality should be removed and be replaced by the S3 lifetime.

The lifetime can i.e. be set via S3-Browser

Acceptance criteria

Alternative solution for cleanup

References

markostreich commented 1 week ago

Bitte prüfen, ob die DB irgendwo für direkte Abfragen genutzt wird. Das wäre noch ein Hinderungsgrund für den Abbau. Usecase wäre: Ordner-Abfrage (evtl. im Kontext Erstellen der Presigned-URL)

markostreich commented 1 week ago

Bitte diese Properties im ops-Repo entfernen/korrigieren:

  IO_MUENCHENDIGITAL_DIGIWF_S3_CRONJOB_CLEANUP_EXPIREDFOLDERS: "0 15 10 15 * ?"
  IO_MUENCHENDIGITAL_DIGIWF_S3_CRONJOB_CLEANUP_UNUSEDFOLDERS: "0 15 10 16 * ?"

Wird in #1706 offen gelassen.

markostreich commented 6 days ago

Das gibt es in application-itest.yaml und application-test.yaml vom digiwf-s3-integration-service.

io.muenchendigital.digiwf.s3:
  cleanupcronjob: "0 15 10 15 * ?"

Sieht so aus, als ob das nicht mehr genutzt wird. Kann wohl auch weg.