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

Auto context with async insertion #4

Open
wants to merge 8 commits into
base: auto_context
Choose a base branch
from

Conversation

ericolson-wf
Copy link
Owner

Making queue add an async call.

For now call queue.add_async() withing the context, and get the
results when the context is exited.

Debating/Question: Will it work well to delay getting the future result until some time after we've exited the context?

For now call queue.add_async() withing the context, and get the
results when the context is exited.
@ericolson-wf
Copy link
Owner Author

Builds off of the AutoContext main PR: Workiva#105

self.async_insert = async_insert

self._insert_tasks_async = options.pop(
'insert_tasks_async', insert_tasks_async)
Copy link
Owner Author

Choose a reason for hiding this comment

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

Not sure if it's so good to allow both options: 'insert_tasks' and 'insert_tasks_async', but their returns and usage are quite a bit different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant