scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
70 stars 42 forks source link

asyncioreactor: initial background_tasks set earlier #300

Closed fruch closed 6 months ago

fruch commented 6 months ago

in b80960f9 we introduce this new set, but initialize it after starting the coroutines, which can lead to cases it won't yet be defined.

moveing it to the start of the the __init__ method fixes the issue