MeltanoLabs / tap-salesforce

Singer.io tap for the Salesforce API
GNU Affero General Public License v3.0
1 stars 29 forks source link

RuntimeError Event loop is closed #13

Open MeltyBot opened 2 years ago

MeltyBot commented 2 years ago

Migrated from GitLab: https://gitlab.com/meltano/tap-salesforce/-/issues/14

Originally created by @obause on 2021-12-08 14:31:56


I'm running the Tap with Meltano 1.88.0 and I get several Exceptions with "Event loop is closed". The Job doesn't stop, but at the End I'm getting "ELT could not be completed: Extractor failed".

BUT everything seems working. I'm getting all Records as expected.

Python version: 3.7.10 Meltano version 1.88.0 Salesforce Tap Config: API-Type: BULK, OAuth based authentication

This exception is raising every few seconds:

tap-salesforce       | extractor | ERROR exception calling callback for <Future at 0x7f345bd69f10 state=finished returned NoneType>
tap-salesforce       | extractor | Traceback (most recent call last):
tap-salesforce       | extractor |   File "/usr/lib64/python3.7/concurrent/futures/_base.py", line 324, in _invoke_callbacks
tap-salesforce       | extractor |     callback(self)
tap-salesforce       | extractor |   File "/usr/lib64/python3.7/asyncio/futures.py", line 365, in _call_set_state
tap-salesforce       | extractor |     dest_loop.call_soon_threadsafe(_set_state, destination, source)
tap-salesforce       | extractor |   File "/usr/lib64/python3.7/asyncio/base_events.py", line 736, in call_soon_threadsafe
tap-salesforce       | extractor |     self._check_closed()
tap-salesforce       | extractor |   File "/usr/lib64/python3.7/asyncio/base_events.py", line 479, in _check_closed
tap-salesforce       | extractor |     raise RuntimeError('Event loop is closed')
tap-salesforce       | extractor | RuntimeError: Event loop is closed

At the End of the Job Meltano ends with

meltano              | elt       | Extraction failed (1): RuntimeError: Event loop is closed
meltano              | elt       | ELT could not be completed: Extractor failed
ELT could not be completed: Extractor failed

So everything seems working, but the Job is exiting with status failed.

Debug Level is not giving more Information to this error.

MeltyBot commented 2 years ago

View 6 previous comments from the original issue on GitLab