Open bjhardcastle opened 4 hours ago
Looks like aind_data_schema_models
is actually required and should be moved to default project dependencies.
aind_alert_utils
is optional and could be imported with ... except ModuleNotFoundError:
, or imported when used in _send_alert_to_teams()
.
https://github.com/AllenNeuralDynamics/aind-codeocean-pipeline-monitor/blob/e3c16abd11ed330230985c6b036384caf88f3b9b/src/aind_codeocean_pipeline_monitor/job.py#L211
This also results in an error (on Windows) due to tzdata
not being installed.
Describe the bug Importing https://github.com/AllenNeuralDynamics/aind-codeocean-pipeline-monitor/blob/main/src/aind_codeocean_pipeline_monitor/job.py with the default project dependencies errors:
aind_alert_utils
andaind_data_schema_models
are imported, but not available. https://github.com/AllenNeuralDynamics/aind-codeocean-pipeline-monitor/blob/e3c16abd11ed330230985c6b036384caf88f3b9b/src/aind_codeocean_pipeline_monitor/job.py#L12-L13To Reproduce Steps to reproduce the behavior:
full
)