Skip to content

Commit

Permalink
Merge branch 'hotfix/cronSchedulesCfg'
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed May 16, 2023
2 parents c696432 + 8f0edcd commit 62134e7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ private Message CreateMessageFromTemplate(IList<SpectrumReadyData> spectra)
if (!_templateManager.Templates.ContainsKey(SpectrometerEvent.SpectrumSaved))
throw new InvalidDataException("Expected that key \"SpectrometerEvent.SpectrumSaved\" present in _templates, actually not");
string template;
bool spectraIsEmpty = !spectra.Any();
if (spectraIsEmpty)
if (spectra.Any())
{
template = _templateManager.Templates[SpectrometerEvent.SpectrumSaved].PositiveCase;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
�� {currDate} �� ���� �������� �� ������ �������, �������� ��� ����� �������� �� ����� �� ��������� �������:
* ��������, ��� ���������� ����������� � ������������ � ������ ������ �� ����������;
* ���� ������ ������������������� ������������ / ���������� ������������ ����������;
* ���������� ���������� �������������� ����������� ����� ������ ������� �� ��� ;
* ���������� ���� (���������� �������/��������� ���� ��������)
На {currDate} не было получено ни одного спектра, косвенно это может говорить об одной из следующих проблем:
* возможно, что накопление остановлено и эксперименты в данный момент не проводятся;
* сбой работы спектрометрического оборудования / отключение управляющего компьютера;
* длительное отключение электроэнергии превышающее время работы системы от АКБ ;
* отсутствие сети (отключение роутера/мобильной сети интернет)
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"DefaultEventWatchSchedule": "",
"DefaultSpectraIndexerSchedule": "30/30 * * ? * * *",
"DefaultSpectraNotifySchedule": "0 0 10,17,22 ? * * *",
"DefaultFileArchSchedule": "0 0 23 1/1 * ? *"
"DefaultFileArchSchedule": "0 0 23 ? * * *"
},
"ConnStr": "Data Source=Wissance.MossbauerLab.Watcher.db;"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"DefaultEventWatchSchedule": "",
"DefaultSpectraIndexerSchedule": "30/30 * * ? * * *",
"DefaultSpectraNotifySchedule": "0 0 10,17,22 ? * * *",
"DefaultFileArchSchedule": "0 0 23 1/1 * ? *"
"DefaultFileArchSchedule": "0 0 23 ? * * *"
},
"ConnStr": "Data Source=Wissance.MossbauerLab.Watcher.db;"
}
Expand Down

0 comments on commit 62134e7

Please sign in to comment.