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

Improvemnet: Add refresh command #2

Open
nonchris opened this issue Apr 10, 2021 · 0 comments
Open

Improvemnet: Add refresh command #2

nonchris opened this issue Apr 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@nonchris
Copy link
Collaborator

We should add some mechanism that allows a user to issue a manual refresh of one or more (?) certs.
This is useful to control if the renewal has worked.

This functionality should have some kind of limit per user.
@MayNiklas suggested to look if the time since last request is greater than x

The best way might be to wrap all requests in a data class which contains information of the issuer (chat id), the database entry (sql object) and the text that has to be sent, maybe even paired with it's own dispatch function which sends the data stored inside to it's issuer.

These objects could be held in a queue/ generator which yields the next entry when last request plus time x has passed.
This ensures that we don't exceed any API limits.

The daily refresh could use the same system too.

@nonchris nonchris added the enhancement New feature or request label Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant