Ignore:
Timestamp:
Dec 10, 2010 11:08:31 PM (10 years ago)
Author:
jwatson
Message:

Adding functionality to automatially bring down Pyro-related solver components after PH has completed executing. Facilitates cleanup on clusters. Enabled by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.pysp/trunk/coopr/pysp/phinit.py

    r3261 r3322  
    231231     dest="disable_warmstarts",
    232232     default=False)
     233   solverOpts.add_option('--shutdown-pyro',
     234     help="Shut down all Pyro-related components associated with the Pyro solver manager (if specified), including the dispatch server, name server, and any mip servers. Default is True.",
     235     action="store_true",
     236     dest="shutdown_pyro",
     237     default=True)
    233238
    234239   postprocessOpts.add_option('--ef-output-file',
     
    712717
    713718   run_ph(options, ph)
     719
     720   if isinstance(ph._solver_manager,coopr.plugins.smanager.pyro.SolverManager_Pyro) and (options.shutdown_pyro is True):
     721      print "Shutting down Pyro solver components"
     722      shutDownPyroComponents()
    714723
    715724#
Note: See TracChangeset for help on using the changeset viewer.