Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-3416

RunCollectionMonitorScript should implement CollectionInputScript

XMLWordPrintable

    • 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.

            TimDiLauro Tim DiLauro
            leonardrichardson Leonard Richardson [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: