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

error handling for flowmeter agent #649

Merged
merged 3 commits into from
Mar 22, 2024
Merged

error handling for flowmeter agent #649

merged 3 commits into from
Mar 22, 2024

Conversation

sanahabhimani
Copy link
Contributor

Description

Handling the following error for the flowmeter; noticed that pump skid 1 required frequent restarts due to this:

2024-03-22T10:08:04+0000 acq:0 CRASH: [Failure instance: Traceback: <class 'requests.exceptions.ConnectionError'>: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

Motivation and Context

Need to implement connection error handling in agent

How Has This Been Tested?

Hasn't been tested at the site---currently have pump skid 1 agent with error handling running on daq-dev in case a connection error comes up soon. At the time of submitting this PR, no connection error has yet occurred.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

One small comment, otherwise looks good!

socs/agents/ifm_sbn246_flowmeter/agent.py Outdated Show resolved Hide resolved
@BrianJKoopman BrianJKoopman self-requested a review March 22, 2024 20:10
Copy link
Member

@BrianJKoopman BrianJKoopman left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for the update!

@sanahabhimani
Copy link
Contributor Author

also, for completeness: just got the alarm that this flowmeter agent crashed once again at the site. the dev version running in the background did catch it

@BrianJKoopman BrianJKoopman merged commit f2e0e38 into main Mar 22, 2024
5 checks passed
@BrianJKoopman BrianJKoopman deleted the flow-errorhandle branch March 22, 2024 20: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.

2 participants