Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)
The `ComputeUnit` class represents the smallest element of work to be
performed on behalf of an application, and is part of a workload managed by
Troy.  More specifically, `Task`s are decomposed into `ComputeUnit`s

ComputeUnits are created according to a :class:`ComputeUnitDescription`,
i.e. a set of key-value pairs describing the represented workload element.

src/t/r/troy-0.0.3/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_local.py   troy(Download)
 
        for unit_id in p.list_units () :
            unit = troy.ComputeUnit (pilot.session, 
                                     _native_id=unit_id, _pilot_id=pilot.id)
            info['units'][unit.id] = unit

src/t/r/troy-0.0.3/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_bigjob.py   troy(Download)
        info['units'] = dict ()
        for bj_unit in bj_units :
            unit = troy.ComputeUnit (pilot.session, 
                                     _native_id=bj_unit.get_url (), 
                                     _pilot_id=pilot.id)

src/t/r/troy-0.0.3/troy/workload/task.py   troy(Download)
            raise TypeError ("expected ComputeUnitDescription, got %s" % type(cu_descr))
 
        unit = troy.ComputeUnit (self.session, cu_descr, _task=self)
 
        self.units[unit.id] = unit