jars
06/29/2020, 3:44 AMChris White
06/29/2020, 3:47 AMread
method of the handler itself which has the following logic: https://github.com/PrefectHQ/prefect/blob/0.7.3/src/prefect/engine/result_handlers/gcs_result_handler.py#L103
In short, you base64
decode + load via cloudpickle
to get the python object.
If you instead want to store the data in GCS using some other format (e.g., JSON, etc.) I highly recommend upgrading to 0.12.1 and using the GCSResult
class which lets you specify both the location in GCS along with how the data is serialized (the default is still to use cloudpickle
)jars
06/29/2020, 3:50 AMChris White
06/29/2020, 3:57 AMjars
06/29/2020, 4:03 AMChris White
06/29/2020, 4:03 AM