Traceback (most recent call last):


 "/root/.pyenv/versions/3.7-dev/lib/python3.7/threading.py", line 917, in _bootstrap_inner

self.run()


 "/root/.pyenv/versions/3.7-dev/lib/python3.7/threading.py", line 865, in run

self._target(*self._args, **self._kwargs)


 "/workspace/mazoku/discord_connector.py", line 51, in init

self.bot.run(TOKEN)


 "/root/.pyenv/versions/venv/lib/python3.7/site-packages/discord/client.py", line 552, in run

loop.add_signal_handler(signal.SIGINT, self._do_cleanup)


 "/root/.pyenv/versions/3.7-dev/lib/python3.7/asyncio/unix_events.py", line 94, in add_signal_handler

raise RuntimeError(str(exc))
RuntimeError: set_wakeup_fd only works in main thread

Traceback (most recent call last):


 "/home/al/dev/zapper/projects/etl2/lib/python3.8/site-packages/mongo_connector/oplog_manager.py", line 668, in do_dump

upsert_all(dm)


 "/home/al/dev/zapper/projects/etl2/lib/python3.8/site-packages/mongo_connector/oplog_manager.py", line 651, in upsert_all

dm.bulk_upsert(docs_to_dump(from_coll), mapped_ns, long_ts)


 "/home/al/dev/zapper/projects/etl2/lib/python3.8/site-packages/mongo_connector/util.py", line 33, in wrapped

return f(*args, **kwargs)


 "/home/al/dev/zapper/projects/etl2/lib/python3.8/site-packages/mongo_connector/doc_managers/solr_doc_manager.py", line 292, in bulk_upsert

batch = list(next(cleaned) for i in range(self.chunk_size))
RuntimeError: generator raised StopIteration
