mecfs_bio.build_system.rebuilder.sandboxed_execute
Functions:
-
noop_post_execute_hook–Default post-execute hook: do nothing.
-
sandboxed_execute–Execute a task in a temporary directory, then move its result to the final location
noop_post_execute_hook
sandboxed_execute
sandboxed_execute(
task: Task,
meta_to_path: MetaToPath,
wf: WF,
fetch: Fetch,
post_execute: Callable[
[Task], None
] = noop_post_execute_hook,
) -> Asset
Execute a task in a temporary directory, then move its result to the final location determined by the task's metadata.
post_execute is invoked with the task after the temp directory is cleaned up and
the asset has been moved into place. The default is a no-op.