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
{{ message }}
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
This is more of an annoyance, but when using an AutoContext to add tasks in batch, you may get undesired results if you don't set the event handler up front.
So the following may not work - as only your last batch would get a completion checker attached:
with context.new(batch_size=10) as ctx:
for item in items:
ctx.add(target=my_func)
ctx.set_event_handler('complete', completion_handler)
as a work around, always set the event handler first,
with context.new(batch_size=10) as ctx:
ctx.set_event_handler('complete', completion_handler)
for item in items:
ctx.add(target=my_func)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This is more of an annoyance, but when using an AutoContext to add tasks in batch, you may get undesired results if you don't set the event handler up front.
So the following may not work - as only your last batch would get a completion checker attached:
as a work around, always set the event handler first,
The text was updated successfully, but these errors were encountered: