Skip to content
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

Source: background file downloads for FileSource #670

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tim-quix
Copy link
Contributor

@tim-quix tim-quix commented Dec 3, 2024

This adds a simple queue to the FileSource connector to download the next file while the current one is being processed.

@tim-quix tim-quix added the connector Issues updating Sinks or Sources label Dec 3, 2024
@tim-quix tim-quix changed the title Source: download queue for FileSource Source: background file downloads for FileSource Dec 3, 2024
def stop(self):
logger.info("Stopping file download thread...")
self._stopped = True
self._executor.shutdown(wait=False)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should cancel the in-progress future before shutting down.

We also should wait=True the shutdown to make it clean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector Issues updating Sinks or Sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants