John Horn
03/07/2023, 10:45 PM@task(
cache_key_fn=task_input_hash,
cache_expiration=timedelta(days=1),
persist_result=True,
result_storage=GCS(
bucket_path="foo-bucket-unique",
service_account_info=json.dumps(GcpCredentials.load('foo-gcp-service-account').service_account_info))
)
error:
Path /root/.prefect/storage/XXXXXXXXXXXXXXXXXXXXXXX does not exist.
This will persist to the bucket but will still run both tasks w/o any utilization of the cache on either run
@task(
persist_result=True,
result_storage=GCS(
bucket_path="foo-bucket-unique",
service_account_info=json.dumps(GcpCredentials.load('foo-gcp-service-account').service_account_info))
)
This will persist to the bucket but will still run both tasks w/o any utilization of the cache on either run
@task(
# cache_key_fn=task_input_hash,
cache_expiration=timedelta(days=1),
persist_result=True,
result_storage=GCS(
bucket_path="foo-bucket-unique",
service_account_info=json.dumps(GcpCredentials.load('foo-gcp-service-account').service_account_info))
)
Zanie
03/07/2023, 10:48 PMrefresh_cache=True
on the first run?John Horn
03/07/2023, 11:01 PM