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

Pass context to all callbacks calls instead of just passing it in the last call. #10340

Merged
merged 2 commits into from Jul 14, 2020

Conversation

asherf
Copy link
Member

@asherf asherf commented Jul 13, 2020

Problem

After #10034, the context kwarg is only passed to the callback in the last call (where finished=True)

Solution

Pass the context param on every call to the callback

Result

Handlers/callbacks don't have to wait for the last call in order to call the context APIs in order to dump digests (for example)

@stuhood stuhood merged commit 7d20655 into pantsbuild:master Jul 14, 2020
@asherf asherf deleted the spell branch July 14, 2020 19:46
Eric-Arellano pushed a commit to Eric-Arellano/pants that referenced this pull request Jul 15, 2020
…assing it in the last call. (pantsbuild#10340)

### Problem

After pantsbuild#10034, the context kwarg is only passed to the callback in the last call (where finished=True)

### Solution

Pass the context param on every call to the callback

### Result

Handlers/callbacks don't have to wait for the last call in order to call the context APIs in order to dump digests (for example)
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.

None yet

3 participants