You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It means SendProblemsHandler.on_any_event in monitor.py would also trigger on_opened. Judges need to trigger this to read test data and init file. This leads to supported-problems being sent multiple times on every submission. Suppose there are n judges, bridged will receive at least 2 * n supported-problems packets on each submission, which leads to 2n SQL update queries.
One simple fix is to add this line in SendProblemsHandler.on_any_event.
That sounds reasonable, but I think rather than comparing against opened and bailing, we should compare against the set of events we do care about (in case watchdog adds more events in the future)
Latest commit from watchdog: gorakhargosh/watchdog@f3dfc4b
It means
SendProblemsHandler.on_any_event
inmonitor.py
would also triggeron_opened
. Judges need to trigger this to read test data and init file. This leads tosupported-problems
being sent multiple times on every submission. Suppose there are n judges, bridged will receive at least 2 * nsupported-problems
packets on each submission, which leads to 2n SQL update queries.One simple fix is to add this line in
SendProblemsHandler.on_any_event
.The text was updated successfully, but these errors were encountered: