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

[searchpurge] if no parameter given, delete search entries from all unknown/offline regions #34

Open
lickx opened this issue Apr 7, 2024 · 0 comments

Comments

@lickx
Copy link
Owner

lickx commented Apr 7, 2024

Maybe better to redo this script in python or another better language.

  • We need a do_purge function that takes a region uuid as parameter. basically it does all the queries that we have now
  • If a parameter is given, check if it is a valid uuid then call do_purge on it
  • Else if no parameter is given, purge all regions that haven't come online since 86400 seconds (24 hours). We will need to build a list (SELECT) of such region uuid's, on which to call do_purge

Note: last_seen is a unixtime in the grid's "regions" table

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

No branches or pull requests

1 participant