Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_bigjob.py   troy(Download)
                pilot      = troy.Pilot (overlay.session, pilot_id, _instance_type='bigjob')
                troy._logger.info ('workload dispatch : dispatch %-18s to %s' \
                                % (uid, pilot._get_instance('bigjob')))
 
                # translate our information into bigjob speak, and dispatch
 
                # FIXME: sanity check for pilot type
                bj_pilot  = pilot._get_instance ('bigjob')
                bj_cu     = bj_pilot.submit_compute_unit (bj_cu_descr)
                bj_cu_url = bj_cu.get_url ()

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_sagapilot.py   troy(Download)
                pilot      = troy.Pilot (self.session, pilot_id, _instance_type='sagapilot')
                troy._logger.info ('workload dispatch : dispatch %-18s to %s' \
                                % (uid, pilot._get_instance('sagapilot')[1]))
 
                # translate our information into sagapilot speak, and dispatch
 
                # FIXME: sanity check for pilot type
                [sp_um, sp_pm, sp_pilot] = pilot._get_instance ('sagapilot')
                sp_cu = sp_um.submit_units (sp_cu_descr)
 

src/t/r/troy-0.0.3/troy/plugins/workload_dispatcher/plugin_workload_dispatcher_local.py   troy(Download)
                pid            = unit.pilot_id
                pilot          = troy.Pilot (overlay.session, pid)
                pilot_instance = pilot._get_instance ('default')
                unit_instance  = pilot_instance.submit_unit (unit_descr)
                troy._logger.info ('workload dispatch : dispatch %-23s to %s' % (unit_id, pid))