Jezreel Zamora
12/04/2024, 5:56 AMJezreel Zamora
12/04/2024, 5:58 AMError encountered when computing cache key - result will not be persisted.
Traceback (most recent call last):
File "/opt/venv/lib/python3.11/site-packages/prefect/task_engine.py", line 155, in compute_transaction_key
key = self.task.cache_policy.compute_key(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/prefect/cache_policies.py", line 168, in compute_key
policy_key = policy.compute_key(
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/prefect/cache_policies.py", line 168, in compute_key
policy_key = policy.compute_key(
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/prefect/cache_policies.py", line 296, in compute_key
return hash_objects(hashed_inputs, raise_on_failure=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/prefect/utilities/hashing.py", line 66, in hash_objects
return stable_hash(cloudpickle.dumps((args, kwargs)), hash_algo=hash_algo)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.11/site-packages/cloudpickle/cloudpickle.py", line 1529, in dumps
cp.dump(obj)
File "/opt/venv/lib/python3.11/site-packages/cloudpickle/cloudpickle.py", line 1295, in dump
return super().dump(obj)
^^^^^^^^^^^^^^^^^
TypeError: cannot pickle 'DeserializingConsumer' object
Bianca Hoch
12/05/2024, 1:50 AMcache_policy
to None
in the task decorator, I don't believe there's an out-of-the-box way to set it globally. If you wouldn't mind, could you open a feature request here?Bianca Hoch
12/05/2024, 1:51 AMJezreel Zamora
12/05/2024, 2:13 AMJezreel Zamora
12/06/2024, 6:46 AM