This helps avoid a crash if `subscribe` returns a `PollClient` and then
the user calls `subscribe` with two arguments. I don't know whether
ignoring `last_log_id` is *correct*, but that's the current behavior,
and anything else is out of scope for the current ticket.
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>
# to do so raises the same exception."
pass
- def subscribe(self, f: Filter) -> None:
+ def subscribe(self, f: Filter, last_log_id: Optional[int]=None) -> None:
"""Subscribe to another set of events from the server
Arguments:
* f: arvados.events.Filter | None --- One filter to subscribe to.
+
+ * last_log_id: Optional[int] --- Ignored; this argument exists for
+ API compatibility with `EventClient.subscribe`.
"""
self.on_event({'status': 200})
self.filters.append(f)