New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix fetch bug EWS V2 #27880
Fix fetch bug EWS V2 #27880
Conversation
for key, protocol in key_protocols: | ||
try: | ||
if "thread_pool" in protocol.__dict__: | ||
demisto.debug('terminating thread pool key{} id: {}'.format(key, id(protocol.thread_pool))) | ||
protocol.thread_pool.terminate() | ||
del protocol.__dict__["thread_pool"] | ||
else: | ||
demisto.info( | ||
'Thread pool not found (ignoring terminate) in protcol dict: {}'.format(dir(protocol.__dict__))) | ||
except Exception as ex: | ||
demisto.error("Error with thread_pool.terminate, ignoring: {}".format(ex)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this being removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the famous error print thats been printed everywhere in the last year+ without having an affect
Every time this runs it fails on a type error, so it never actually can do anything
Its also redundant, the point here seems that we didnt trust shut down to do its job for some reason and we are manually trying to do this here (without success not that anybody has noticed)
Co-authored-by: Judah Schwartz <JudahSchwartz@users.noreply.github.com>
Status
Related Issues
fixes: link to the issue
Description
Fix an error where some fields are returned as list and raised an error
Screenshots
Paste here any images that will help the reviewer
Minimum version of Cortex XSOAR
Does it break backward compatibility?
Must have