-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Use service to clean sessions #17383
Conversation
71e2dcc
to
0b8e980
Compare
@@ -31,7 +31,7 @@ class ClearOldSessionsJob < ApplicationJob | |||
include ::RakeJob | |||
|
|||
def perform | |||
super("db:sessions:expire", 7) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was set to 7 by default, which seems a bit low for a cleanup
0b8e980
to
fb1e842
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, but I'd suggest to simplify the query to not use a raw SQL. That would also fix the brakeman report about a possible injection
Co-authored-by: Klaus Zanders <[email protected]>
820aa0d
to
a954219
Compare
https://appsignal.com/openproject-gmbh/sites/673aff9c83eb6776b27e773c/exceptions/incidents/23/samples/timestamp/2024-12-05T01:15:01Z
https://community.openproject.org/work_packages/59930