Skip to content

API endpoint for job cleanup - #23

Merged
SchwarzBenjamin merged 1 commit into
GISA-OSS:mainfrom
SchwarzBenjamin:job-cleanup
Sep 16, 2026
Merged

SchwarzBenjamin merged 1 commit into
GISA-OSS:mainfrom
SchwarzBenjamin:job-cleanup

Conversation

@SchwarzBenjamin

Copy link
Copy Markdown
Contributor

The PR implements an API endpoint that exposes an endpoint "/job_cleanup" as POST request that cleanes up job entries older than 89 days and subsequently entries connected to those jobs in other tables.

Signed-off-by: Benjamin Schwarz <benjamin.schwarz@gisa.de>
@adaschma-gisa-de

Copy link
Copy Markdown
Contributor

As this is part of management rather than recording new items, I am wondering if @ro_token_required is a better fit. Tough we would need a better name for ro_token_required.

@SchwarzBenjamin SchwarzBenjamin changed the title API endpoint for jJob cleanup API endpoint for job cleanup Sep 16, 2026

@adaschma-gisa-de adaschma-gisa-de left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine keeping it with token_required. As ro_token_requited also allows token_required, if we do want to change it in the future it would be backward compatible.

@SchwarzBenjamin
SchwarzBenjamin merged commit 4ba6137 into GISA-OSS:main Sep 16, 2026
2 checks passed
@SchwarzBenjamin
SchwarzBenjamin deleted the job-cleanup branch September 16, 2026 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants