Skip to content

Clear all data from DB table when the daemon stops#228

Merged
sujinmkang merged 3 commits intosonic-net:masterfrom
sujinmkang:thermalctld
Dec 2, 2021
Merged

Clear all data from DB table when the daemon stops#228
sujinmkang merged 3 commits intosonic-net:masterfrom
sujinmkang:thermalctld

Conversation

@sujinmkang
Copy link
Collaborator

Description

Clear all data from DB table when the daemon stops

Motivation and Context

Clean up when the daemon stops

How Has This Been Tested?

Check Thermal and physical info data if they are cleared after stopping the thermalctld.

Additional Information (Optional)

@@ -214,6 +214,20 @@ class FanUpdater(logger.Logger):
for name in self.fan_status_dict.keys():
Copy link
Collaborator

@Junchao-Mellanox Junchao-Mellanox Nov 23, 2021

Choose a reason for hiding this comment

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

should we remove this code?

@sujinmkang sujinmkang requested a review from prgeor December 2, 2021 04:01
@sujinmkang sujinmkang merged commit 8bad10a into sonic-net:master Dec 2, 2021
qiluo-msft pushed a commit that referenced this pull request Feb 23, 2022
Description
Clear all data from DB table when the daemon stops

Motivation and Context
Clean up when the daemon stops

How Has This Been Tested?
Check Thermal and physical info data if they are cleared after stopping the thermalctld.
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants