-
Story
-
Resolution: Done
-
Medium
-
None
-
SIMPLY S6 March 16 - March 30, SIMPLY S7 March 30 - April 13, SIMPLY S8 April 13 - 27
We have a class CollectionInputScript for scripts that take one or more collection names as command-line arguments and then do something to those collections.
RunCollectionMonitorScript is an obvious candidate for doing this – it runs some operation against every collection of a certain type on the site. This can take a very long time, so it would be good to be able to specify a particular collection to operate on.
But RunCollectionMonitorScript doesn't actually implement CollectionInputScript, so it's not possible to specify a particular collection when running the script.
Note that the bibliotheca_collection_monitor script may need special treatment because the bin/bibliotheca_collection_monitor file does something unusual with sys.argv, possibly bypassing the normal argparse code for parsing command-line arguments. It should be changed to configure the argparse setup instead, the way other scripts do.