Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cron + graceful api shutdown #43

Merged
merged 4 commits into from
May 15, 2024
Merged

Add cron + graceful api shutdown #43

merged 4 commits into from
May 15, 2024

Conversation

Marketen
Copy link
Contributor

@Marketen Marketen commented May 15, 2024

closes #24

  • start api as go routine to not block main execution & let cron execute
  • define and start a cron job scheduled daily, runs RemoveOldSignatures()
  • added RemoveOldSignatures() func, removes signatures older than given time in hours
  • added graceful shutdown to main process & api

@Marketen Marketen self-assigned this May 15, 2024
@Marketen Marketen merged commit bb853e2 into main May 15, 2024
1 check passed
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.

Add cron to delete signatures older than 30 days
2 participants