Stanley Yang
10/18/2022, 7:43 PMalex
10/20/2022, 5:09 PMjoin
-ed before exiting the op unless you want them to keep running with no monitoring/control.Rohan Prasad
10/20/2022, 9:54 PMRohan Prasad
10/20/2022, 9:55 PM<http://context.log.info|context.log.info>()
so something like this:
def func(l, context):
<http://context.log.info|context.log.info>("Log something")
# do something
r = []
with ThreadPoolExecutor(thread_count):
for l in ll:
r.append(func(l, context))
Rohan Prasad
10/20/2022, 9:59 PMalex
10/20/2022, 10:15 PMQueue
for messages and context.log them while it waits for the threads to completealex
10/20/2022, 10:16 PMRohan Prasad
10/21/2022, 2:11 PM