-
Notifications
You must be signed in to change notification settings - Fork 51
Standalone scripts
This page is created with the intention to document all the standalone scripts in this repository. If we are not able to understand and thus document a script, we should delete it, since there is nobody who can use it.
Script used for querying all the active workflows in wmstats and matching their output LFNBases against a list of unmerged files (that were lost somewhere). It will print out the request name, its status and the LFN base path to the files missing. Note: you need to setup your grid proxy (X509_USER_PROXY) before running it
Script to set the WM status of a set of workflows. (I did not try to run it, but if it's running, then it might be useful)
...
Seems like it removes a given campaign from mongodb. I did not try it, but it might be useful.
Reject a given list of workflows. This can be used when input workflows are in status: assigened or assignment-approved input arg: Text file with list of workflows.
I did not try it so far, but if it is running, could be handy sometime.
Reject a given list of workflows and then clone them. also INVALIDATES original dataset, since the clone will have increased version number This can be used when input workflows are in status: assigened or assignment-approved Please use abortAndClone for workflows in status acquired or running open/closed The cloned requests have a newly generated RequestName, new timestamp, however -everything- else is copied from the original request. input arg: Text file with list of workflows.
I did not try it so far, but if it is running, could be handy sometime.
python recovery.py --assign "--site original --xrootd --lumisperjob 1" --w pdmvserv_Run2016G_BTagCSV_UL2016_MiniAODv1_NanoAODv2_201215_091431_5998 --go
...
...
...
Filters through the list of ACDC's that are in "completed" which ones have it's original workflow in a status beyond (archived, closed-out, rejected, etc)
To be reviewed
Close out a given list of workflows. It will search for any Resubmission requests for which the given request is a parent and announce them too. input arg: Text file with list of workflows. [Hasan]: I haven't run it, but, it could be helpful if it is running.
[Hasan]: I haven't run it, but, it could be helpful if it is running.
[Hasan]: I haven't run it, but, it could be helpful if it is running. Looks like it gives a snapshot of the memory usage in unified machines
This script allows to change the splitting of a request, on a given task name
.. automodule:: WmAgentScripts.changeSplittingWorkflow
.. program-output:: python ../WmAgentScripts/changeSplittingWorkflow.py -h
Note
The TASKPATH should be the full task path in which you want to change the splitting, i.e. StepOneProc, StepOne /StepOneProcMerge, Production, etc.
The TYPE is the algorithm for splitting.
[Hasan]: I haven't run it, but, it could be helpful if it is running.
Changes priority of a workflow or a list of workflows
[Hasan]: I haven't run it, but, it could be helpful if it is running.
To be documented
To be documented
To be documented
Announce a given list of workflows. It will search for any Resubmission requests for which the given request is a parent and announce them too. input arg: Text file with list of workflows.
[Hasan]: I haven't run it, but, it could be helpful if it is running.
In case the ACDC console is down, this could be handy
Abort a given list of workflows This can be used when input workflows are in status: acquired or running open/closed input arg: Text file with list of workflows.
[Hasan]: I haven't run it, but, it could be helpful if it is running.