chelseatroy
12/23/2021, 9:24 PMPrefectSecret('PRIVATE_KEY_PASS_PHRASE').encode() because the encode method is on str and PrefectSecret returns a PrefectSecret. Anyone know how to do this?Kevin Kho
Kevin Kho
run to add the encode.chelseatroy
12/23/2021, 9:27 PMKevin Kho
@task(checkpoint=False)
def encode(x):
return x.encode()
with Flow(...) as flow:
key = PrefectSecret('PRIVATE_KEY_PASS_PHRASE')
encoded = encode(key)
Snowflake(..., encoded)
but note to turn off checkpointing so it doesnt get savedchelseatroy
12/23/2021, 9:37 PMKevin Kho
checkpoint=False inside the task above