Skip to content

CADC-16019 catch runtime exception when unable to get the recursive set node job - #48

Merged
jburke-cadc merged 6 commits into
opencadc:mainfrom
jburke-cadc:CADC-16019
Sep 23, 2026
Merged

jburke-cadc merged 6 commits into
opencadc:mainfrom
jburke-cadc:CADC-16019

Conversation

@jburke-cadc

Copy link
Copy Markdown
Collaborator

When a DOI is minted, it creates a recursive set node job to set the appropriate permissions for a minted DOI, and the job url is added to the DOI node properties. The next GET of the DOI after it's minted checks for the job url, and if if finds a job url tries to get the job phase, which throws a runtime if the job can't be retrieved. The runtime causes the DOI to be missing from a user's list of DOI's Data Publications, and a user thinks their DOI has been deleted.
Catch the runtime and set the job phase to error.
Plus some other cleanup.

@jburke-cadc
jburke-cadc merged commit 3916355 into opencadc:main Sep 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants