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
Copy file name to clipboardExpand all lines: octue/cloud/events/handler.py
+7-4
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,8 @@ class AbstractEventHandler:
39
39
:param dict|None event_handlers: a mapping of event type names to callables that handle each type of event. The handlers must not mutate the events.
40
40
:param dict schema: the JSON schema to validate events against
41
41
:param bool include_service_metadata_in_logs: if `True`, include the SRUIDs and question UUIDs of the service revisions involved in the question to the start of the log message
42
-
:param bool only_handle_result: if `True`, skip handling non-result events and only handle the "result" event when received
42
+
:param bool only_handle_result: if `True`, skip handling non-result events and only handle the "result" event when received (turning this on speeds up event handling)
43
+
:param bool validate_events: if `True`, validate events before attempting to handle them (turning this off speeds up event handling)
Copy file name to clipboardExpand all lines: octue/cloud/events/replayer.py
+8-1
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,8 @@ class EventReplayer(AbstractEventHandler):
15
15
:param dict|None event_handlers: a mapping of event type names to callables that handle each type of event. The handlers must not mutate the events.
16
16
:param dict|str schema: the JSON schema to validate events against
17
17
:param bool include_service_metadata_in_logs: if `True`, include the SRUIDs and question UUIDs of the service revisions involved in the question to the start of the log message
18
-
:param bool only_handle_result: if `True`, skip non-result events and only handle the "result" event if present
18
+
:param bool only_handle_result: if `True`, skip non-result events and only handle the "result" event if present (turning this on speeds up event handling)
19
+
:param bool validate_events: if `True`, validate events before attempting to handle them (turning this off speeds up event handling)
0 commit comments