[v6r22] Pilot Submission statistics is counted by SiteDirector based on Accounting System#4205
Conversation
zmathe
left a comment
There was a problem hiding this comment.
I have a general comment. This is not accounting, I would propose to add it to the MonitoringSystem. Probably, that time when you developed this accounting type, the monitoring did not exist. It is easy to move this to the MonitoringSystem, will not require lot of work, because both systems are almost identical.
| @@ -0,0 +1,31 @@ | |||
| ''' Accounting Type for Pilot Submission | |||
| ''' | |||
| __RCSID__ = "(2019-08-06 +0000) Yuji Kato <kato@hepl.phys.nagoya-u.ac.jp>" | |||
There was a problem hiding this comment.
please move RCSID before class declaration( line 7 ) and it must be:
__RCSID__ = "$Id$"
| return retVal | ||
| dataDict, granularity = retVal['Value'] | ||
| self.stripDataField(dataDict, 0) | ||
| dataDict, maxValue = self._divideByFactor(dataDict, granularity) |
There was a problem hiding this comment.
maxValue is not used:
dataDict, _ = self._divideByFactor(dataDict, granularity)| self.stripDataField(dataDict, 0) | ||
| dataDict, maxValue = self._divideByFactor(dataDict, granularity) | ||
| dataDict = self._fillWithZero(granularity, reportRequest['startTime'], reportRequest['endTime'], dataDict) | ||
| baseDataDict, graphDataDict, maxValue, unitName = self._findSuitableRateUnit(dataDict, |
|
@zmathe I think it's fine even if it is using the Accounting system. |
|
@zmathe thank you very much for your comments. I fixed other comments. |
|
Hi @yujikato and thanks for this. Questions:
|
|
Can you add a flag to disable this reporting? |
… typo in the comment of SendPilotAccounting.
|
Thank you for questions and sorry for my late reply due to summer holiday.
It is now running at the BelleDIRAC certification server but not at production environment.
The commits to the AccountingSystem happens for each Site-CE-Queue combination,
Is it done by "CEs" option? If so, yes, these case can be is covered. |
It is done. |
|
@zmathe you have "requested changes", would you review OK now? |
BEGINRELEASENOTES
WMS and Accounting
NEW: Statistics of Pilot submission is sent to Accounting System by SiteDirector.
ENDRELEASENOTES