[
https://issues.apache.org/jira/browse/BEAM-6778?focusedWorklogId=213146&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-213146
]
ASF GitHub Bot logged work on BEAM-6778:
----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Mar/19 14:23
Start Date: 14/Mar/19 14:23
Worklog Time Spent: 10m
Work Description: robertwb commented on pull request #7937: [BEAM-6778]
Enable Bundle Finalization in Python SDK harness over FnApi
URL: https://github.com/apache/beam/pull/7937#discussion_r265582828
##########
File path: sdks/python/apache_beam/runners/worker/sdk_worker.py
##########
@@ -186,11 +186,11 @@ def task():
try:
self._execute(lambda: worker.do_instruction(work), work)
finally:
- # Delete the instruction_id <-> worker mapping
- self._instruction_id_vs_worker.pop(work.instruction_id, None)
- # Put the worker back in the free worker pool
- self.workers.put(worker)
-
+ if not worker.has_active_processors():
Review comment:
The bundle processors must be kept out of the free pool, but the workers
need not be. Instead, grab a fresh worker whenever a finalization request comes
through.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 213146)
Time Spent: 2h 50m (was: 2h 40m)
> Enable Bundle Finalization in Python SDK
> ----------------------------------------
>
> Key: BEAM-6778
> URL: https://issues.apache.org/jira/browse/BEAM-6778
> Project: Beam
> Issue Type: New Feature
> Components: sdk-py-harness
> Reporter: Boyuan Zhang
> Assignee: Boyuan Zhang
> Priority: Major
> Time Spent: 2h 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)