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

Check to see if we error on any events in handle_event function - TRON-2051 #932

Closed
wants to merge 1 commit into from

Conversation

EmanElsaban
Copy link
Contributor

This PR adds a try/except block to check to see if we error on any event in handle_event function. Erroring on any event means we don't handle this event at all and thus we don't update Tron's state machine for it

if clog is None:
log.debug("Clog logger unavailable. Unable to log event")
else:
clog.log_line("tmp_missed_tronevents", json.dumps(event)) # Capture event
Copy link
Member

Choose a reason for hiding this comment

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

should this be str(event)?

@nemacysts
Copy link
Member

@EmanElsaban did we end up including these changes in the python upgrade branch? (i.e., can we close this PR?)

@nemacysts
Copy link
Member

(we figured out that the issue we'd been looking for was really a bad interaction between the k8s client lib and python loggers - every model added a new logger and every setLevel call operated on all the loggers that had been created, which slowed down over time)

@nemacysts nemacysts closed this Jun 10, 2024
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