-
Notifications
You must be signed in to change notification settings - Fork 13
Uploading framework job report from WMAgent to WMArchive
Valentin Kuznetsov edited this page Mar 15, 2016
·
7 revisions
-
When FWJR came back from worker node, JobAccountant and ErrorHandler puts the data in agent couchdb with ready state
# complete fwjr document
fwjrDocument = {"_id": "%s-%s" % (job["id"], job["retry_count"]),
"jobid": job["id"],
"retrycount": job["retry_count"],
"archivestatus": "ready",
"fwjr": jsonFWJR,
"type": "fwjr"}
-
ArchiveDataReporter component polls the the data,
[code link 2] (https://github.com/dmwm/WMCore/blob/master/src/python/WMComponent/ArchiveDataReporter/ArchiveDataPoller.py#L42)
-
convert the format for WMArchive then upload bulk data.
-
upload to WMArchive. (Still need to add break down upload number)
-
update FWJR status to "uploaded" in WMArchive.
-
The actual work to post requests is done by WMArchive service
-
converting original FWJR format to WMArchive format.