Ignore:
Timestamp:
Jul 27, 2009 9:41:25 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
8f32dc0
Parents:
65f3f29
Message:

Add override fedids that can access all experiments. These are admins,
basically.

Also add a force parameter to terminate requests, to force the termination (and
really deletion of internal state) for experiments in odd states or with
internal misconfigurations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/fedd_client.py

    r65f3f29 rca489e8  
    157157                help="data to extract")
    158158
     159class fedd_terminate_opts(fedd_exp_data_opts):
     160    def __init__(self):
     161        fedd_exp_data_opts.__init__(self)
     162        self.add_option("--force", dest="force",
     163                action="store_true", default=False,
     164                help="Force termination if experiment is in strange state")
     165
    159166class fedd_multi_exp_data_opts(fedd_client_opts):
    160167    def __init__(self):
     
    10241031        """
    10251032        # Process the options using the customized option parser defined above
    1026         parser = fedd_exp_data_opts()
     1033        parser = fedd_terminate_opts()
    10271034
    10281035        (opts, args) = parser.parse_args()
     
    10611068                    "--experiment_name");
    10621069
    1063         req = { 'experiment': exp_id }
     1070        req = { 'experiment': exp_id, 'force': opts.force }
    10641071
    10651072        try:
Note: See TracChangeset for help on using the changeset viewer.