Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-39089: Handle failure modes in Sasquatch Dispatch #96

Merged
merged 2 commits into from May 8, 2023

Conversation

natelust
Copy link
Contributor

@natelust natelust commented May 8, 2023

Handle failure modes in Sasquatch Dispatching where the reference_package is a None value, and when there is no data in a bundle to upload.

Handle failure modes in Sasquatch Dispatching where the
reference_package is a None value, and when there is no data in
a bundle to upload.
It was decided that there will not be a different lsst.debug
namespace, but that development work would happen on a difference
Sasquatch instance. Accordingly change the default namespace such
that it is the same across all instances.
@natelust natelust requested a review from afausti May 8, 2023 18:07
Copy link

@afausti afausti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes look good.

@@ -354,7 +354,8 @@ def _handleReferencePackage(self, meta: MutableMapping, bundle: MetricMeasuremen
except ValueError:
# Could not extract package timestamp leaving empty
pass
meta["reference_package"] = ref_package
# explicit handle if None was set in the bundle for the package
meta["reference_package"] = ref_package or ""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, fields must be present in the payload even if the value is missing. An empty string is a good default value.

@natelust natelust merged commit ebbb319 into main May 8, 2023
7 checks passed
@natelust natelust deleted the tickets/DM-39089 branch May 8, 2023 18:23
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.

None yet

2 participants