Skip to content

Commit 3d499b4

Browse files
committed
add _sync=True for deploying
1 parent e3d152a commit 3d499b4

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

data_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
@task(retries=2, retry_delay_seconds=10)
88
def read_all_streams(uid):
9-
api_key = Secret.load("tiled-chx-api-key").get()
9+
api_key = Secret.load("tiled-chx-api-key", _sync=True).get()
1010
tiled_client = from_profile("nsls2", api_key=api_key)
1111
logger = get_run_logger()
1212
run = tiled_client['chx']["raw"][uid]

processing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55
import pytest
66

7-
api_key = Secret.load("tiled-chx-api-key").get()
7+
api_key = Secret.load("tiled-chx-api-key", _sync=True).get()
88
tiled_client = from_profile("nsls2", api_key=api_key)["chx"]
99
tiled_client_chx = tiled_client["raw"]
1010
tiled_cilent_sandbox = tiled_client["sandbox"]

sparsify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
EXPORT_PATH = Path("/nsls2/data/dssi/scratch/prefect-outputs/chx/")
2020

2121
# distributed_client = distributed.Client(n_workers=1, threads_per_worker=1, processes=False)
22-
api_key = Secret.load("tiled-chx-api-key").get()
22+
api_key = Secret.load("tiled-chx-api-key", _sync=True).get()
2323
tiled_client = from_profile("nsls2", "dask", api_key=api_key)["chx"]
2424
tiled_client_chx = tiled_client["raw"]
2525
tiled_client_sandbox = tiled_client["sandbox"]

test_sparsify.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from prefect.blocks.system import Secret
1616

1717
DATA_DIRECTORY = Path("/nsls2/data/chx/legacy/Compressed_Data")
18-
api_key = Secret.load("tiled-chx-api-key").get()
18+
api_key = Secret.load("tiled-chx-api-key", _sync=True).get()
1919
tiled_client = from_profile("nsls2", "dask", api_key=api_key)["chx"]
2020
tiled_client_chx = tiled_client["raw"]
2121
tiled_client_sandbox = tiled_client["sandbox"]

0 commit comments

Comments
 (0)