You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warns (or errors) if required data products won't be available
Runs at build/submission time, not runtime
Example validation:
def validate_needs(self):
required = self.pipeline.get_actual_inputs(self)
for requirement in required:
satisfied = any(
requirement in dep.pipeline.get_actual_outputs(dep)
for dep in self.needs
)
if not satisfied:
warnings.warn(f"Production requires '{requirement}' but no dependency provides it")
Benefits:
Catch configuration errors before wasting compute time
Summary: Validate that productions in needs will provide required data products before submission.
Description:
Add validate_needs() method to Analysis class that:
Example validation:
Benefits: