Skip to content

Commit

Permalink
createmeshes: Set dvid timeout immediately before posting meshes to dvid
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarteberg committed Nov 1, 2023
1 parent 42c8687 commit b2cc148
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions flyemflows/workflow/createmeshes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,12 @@ def write_sv_meshes(sv_meshes_df, log=True):
with open(path, 'wb') as f:
f.write(mesh_bytes)
else:
# Set the timeouts here, inside the worker process.
# (Is this necessary? Probably doesn't hurt.)
set_default_dvid_session_timeout(
destination[destination_type]["timeout"],
destination[destination_type]["timeout"]
)
instance = [destination[destination_type][k] for k in ('server', 'uuid', 'instance')]
with resource_mgr.access_context(instance[0], False, 1, sum(filesizes)):
if destination_type == 'tarsupervoxels':
Expand Down

0 comments on commit b2cc148

Please sign in to comment.