Skip to content
Snippets Groups Projects
Commit 405ce889 authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Update service status at least once a minute.

Restoring the "heartbeat" functionality without the overhead of
serializing the XML every second.
parent 04d6d48c
Branches
Tags
No related merge requests found
...@@ -495,6 +495,10 @@ namespace ATxService ...@@ -495,6 +495,10 @@ namespace ATxService
SendLowSpaceMail(SystemChecks.CheckFreeDiskSpace(_config.SpaceMonitoring)); SendLowSpaceMail(SystemChecks.CheckFreeDiskSpace(_config.SpaceMonitoring));
UpdateServiceState(); UpdateServiceState();
// update the status heartbeat at least once a minute:
if (TimeUtils.SecondsSince(_status.LastStatusUpdate) >= 60)
_status.Serialize();
if (TimeUtils.SecondsSince(_lastUserDirCheck) >= 120) if (TimeUtils.SecondsSince(_lastUserDirCheck) >= 120)
CreateIncomingDirectories(); CreateIncomingDirectories();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment