Closed dballesteros7 closed 11 years ago
Hi,
Given the discussions from yesterday, the state handling will be fully done on the Analytics component or we should still do something on the Feeder?
This one is still needed, no one but the Tier0Feeder knows about "a run is closed".
What you could do, in the table that we already use to track upload of the workflow request to couch, we just another flag to keep track of uploading the closing information. Then just run an additional query in the Tier0Feeder that checks all workflows that have been uploaded but not closed yet if their input fileset (run/stream or dataset related) has been closed and update the status in couch and t0ast when it has.
One question though, when should we update the status of the request document ? When all the data for Repack and Express in the Tier0 and the top level fileset is closed ? Or when Repack and Express are fully done ?
The first one, when all files are in the Tier-0. The second part is handled by the AnalyticsCollector based on the wmbs_subscription.finished flag
Diego is right, Dirk and I just concluded in the chat that we'll add one more flag to the workflow_monitoring page and use that . One question though, I need to make mechanisms to avoid reporting that for Reco, as it's something we want to Express/Repack only, right?
If it is too much work to avoid doing the same for Reco, it's okay. Reco can have the same New -> Closed transition, but in this case it really doesn't have any meaning as in the other two and the monitor will show Closed as PromptReco just as it would do with New.
Should be fine without Reco, if it gets too bad I complain here =)
I'm going to use the field name in workflow_monitoring as 'closeout', complain here if you don't like it.
This was actually a dumb question :-1: https://hypernews.cern.ch/HyperNews/CMS/get/wmDevelopment/442.html
I could just inner join with wmbs_fileset in the discovery query and bring the .closed flag... doing like that
@hufnagel , if you're happy, when you merge :
https://github.com/dmwm/T0/pull/4002
Please close this ticket.
Thanks, Samir
If you add "fixes #3998" in the commit message (not the description in GH, tried it already and didn't work), GH will close the referred issue when the pull request is merged
Fixed in #4002
For monitoring purposes, the Tier0Feeder should update the status of the request document for Express and Repack workflows through the update status call (updateRequestStatus in WMStatsWriter).
The transition should go from New to Closed. The monitoring will take care of mapping Closed to Repack and Express for repack and express workflows respectively.
@samircury can you take care of this one please?