[832] Copy to beegfs and register in Tiled#134
Open
davramov wants to merge 23 commits intoals-computing:mainfrom
Open
[832] Copy to beegfs and register in Tiled#134davramov wants to merge 23 commits intoals-computing:mainfrom
davramov wants to merge 23 commits intoals-computing:mainfrom
Conversation
dylanmcreynolds
requested changes
May 4, 2026
…_tags). Also removing file paths from main, and setting as .env variables
… updating github action
| entry_key = path.stem | ||
| logger.info(f"Looking up entry key {entry_key!r} under {prefix!r}") | ||
| try: | ||
| _apply_tags(node[entry_key]) |
Contributor
There was a problem hiding this comment.
if _apply_tags is called in both if and else here...what keep this from being an infinite loop? Keyerror? SWhould you breaking out when you're setting the tag at the top of this function?
Contributor
Author
There was a problem hiding this comment.
I'm moving _apply_tags to its own task. It only loops if it is a directory (i.e., TIFF stack) to apply the tag to all of the files, otherwise, it only applies the tag to the top level.
@task(name="apply-tags", task_run_name="apply-tags-{tags}")
def _apply_tags(entry_node, tags: list[str]) -> None:
But this is still where I'm having trouble with
entry_node.update_metadata(access_tags=merged_tags)
vs
entry_node.patch_metadata(
access_blob_patch=[{"op": op, "path": "", "value": {"tags": merged_tags}}],
)
…, cleanup. Files and tags register with tiled, and I can see them via the Tiled python api, but not in the Tiled UI for some reason (maybe a sign access tags are working...)
…le: dispatcher (async) -> move.py (sync) -> register_file_to_tiled (async). Using Prefect's built in helper from prefect.utilities.asyncutils import run_coro_as_sync to run the async Tiled register() function synchronously
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a transfer for the bl832 workflow to copy data to beegfs, and ingest the new data into Tiled.