-
Notifications
You must be signed in to change notification settings - Fork 44
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
fixes possible error state in nautobot_ssot_duration_seconds metric #250
Conversation
de51d28
to
d1a7bf3
Compare
Do we understand the case in which |
Not quite - I want to explore this further with the user in #248 but IIRC its the second time I've seen it and I don't like the idea of breaking startup for people |
I believe this was seen with an SSoT Job that hadn't been updated to the 2.0 pattern. Technically the Job shouldn't have loaded/functioned at all from what I saw due to this. That's why I'm hesitant to do more than a simple check for the job_class attribute existing. |
That's all we're doing here though, isn't it? |
You appear to be doing a try/except and catching a TypeError when I'd probably use |
Got it, I think we can go for |
Works for me. |
Fixed! |
FYI I pushed this ( It seems that poetry does not like
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Possibly fixes #248