<broker-cleanup>
Purpose/Function
Calls clean-up on the ncsa.services.broker
service. This operation deletes workflows from the broker's database; if a repository endpoint is given, events from the event repository service will also be deleted; if an archive location is given, the extracted data will be written to files and zipped into that directory. If daysAgo is set, it will be used; else if hoursAgo is not set, the default value (4 days) will be used.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
brokerUri |
|
(required) |
broker service endpoint |
daysAgo |
|
4 |
window, in days; all workflows submitted before this time and which have terminated will be removed |
eventRepositoryUri |
|
|
repository endpoint |
hoursAgo |
|
|
window, in hours; all workflows submitted before this time and which have terminated will be removed |
proxyLoc |
|
|
override default or X509_USER_PROXY path to the proxy to use for this operation |
workflowArchiveUri |
|
|
URI, either local to the service (i.e., 'file:/') or remote, of directory to which to move the archive files |
Elements
TAG |
TYPE |
COUNT |
DESCRIPTION |
---|---|---|---|
|
|
0:1 |
configuration to use on Trebuchet operations involved in the archiving |
ReturnValues
None.
Examples
<ogrescript> ... <broker-cleanup brokerUri="httpg://tb1.ncsa.uiuc.edu:8043/broker/services/Broker" eventRepositoryUri="http://tb1.ncsa.uiuc.edu:8080/events/services/EventRepository" workflowArchiveUri="mssftp://arossi@mss.ncsa.uiuc.edu/u/ac/arossi/workflow-archive" hoursAgo="1"> <configuration> <property name="transferMode" value="gridftp-stream" /> <property name="target-active" value="true" type="boolean" /> <property name="tcpBufferSize" value="2097152" type="int" /> </configuration> </broker-cleanup> ... </ogrescript>