[ 
https://issues.apache.org/jira/browse/BEAM-8123?focusedWorklogId=304649&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-304649
 ]

ASF GitHub Bot logged work on BEAM-8123:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Aug/19 22:30
            Start Date: 30/Aug/19 22:30
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on pull request #8978: [BEAM-8123]  
[DO NOT MERGE] POC: use cloudpickle for pickling.
URL: https://github.com/apache/beam/pull/8978#discussion_r302340299
 
 

 ##########
 File path: sdks/python/apache_beam/transforms/ptransform.py
 ##########
 @@ -696,8 +697,9 @@ def __init__(self, fn, *args, **kwargs):
     # Ensure fn and side inputs are picklable for remote execution.
     try:
       self.fn = pickler.loads(pickler.dumps(self.fn))
-    except RuntimeError:
-      raise RuntimeError('Unable to pickle fn %s' % self.fn)
+    except Exception:
+      message = traceback.format_exc()
+      raise RuntimeError('Unable to pickle fn %s %s.' % (self.fn, message))
 
 Review comment:
   Comment without fixup.
 
----------------------------------------------------------------
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: 304649)
    Time Spent: 0.5h  (was: 20m)

> Support CloudPickle as pickler for Apache Beam.
> -----------------------------------------------
>
>                 Key: BEAM-8123
>                 URL: https://issues.apache.org/jira/browse/BEAM-8123
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Valentyn Tymofieiev
>            Assignee: Valentyn Tymofieiev
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to