Did I find the right examples for you? yes no

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
The `Workload` class represents a workload which is managed by Troy.  It
contains a set of :class:`Tasks`, and a set of :class:`Relation`s between
those tasks.

Workload instances are owned by the :class:`WorkloadManager` class -- only
that class should change its composition and state.

A workload undergoes a series of transformations before ending up as on
a specific resource (pilot).  Those transformations are orchestrated by the
workload manager.  To support that orchestration, a workload will be(more...)

src/t/r/troy-0.0.3/troy/workload/workload_manager.py   troy(Download)
                            % workload_description)
        workload = troy.Workload (self.session, 
        workload = troy.Workload (task_descriptions, relation_descriptions)
        return workload.id

src/t/r/troy-0.0.3/troy/plugins/planner_derive/plugin_planner_derive_concurrent.py   troy(Download)
            # then create concurrent partitions
            task_ids = workload.tasks.keys ()
            c_partition = troy.Workload (workload.session)
            for n in range (0, n_concurrent) :
            # tasks
            for n in range (n_concurrent, n_tasks) :
                s_partition = troy.Workload (workload.session)
                s_partition.tasks[task_ids[n]] = workload.tasks[task_ids[n]]
                workload.partitions.append (s_partition.id)

src/t/r/troy-0.0.3/troy/application/skeleton_application.py   troy(Download)
        for skeleton_stage in self.stagelist:
            stage_workload = troy.Workload ()
            print skeleton_stage

src/t/r/troy-0.0.3/tests/unittests/workload_manager/test_register_workload.py   troy(Download)
def test_workload_create () :
    test workload creation
    wl1  = troy.Workload ()

src/t/r/troy-0.0.3/tests/unittests/workload_manager/test_create_workload.py   troy(Download)
    tc = rut.get_test_config ()
    wl_dict = tc.workload_dict
    wl      = troy.Workload ()
    if  not 'tasks' in wl_dict :

src/t/r/troy-0.0.3/tests/unittests/planner/test_expand_workload.py   troy(Download)
    wl_dict = tc.workload_dict
    wl = troy.Workload()
    planner = troy.Planner()
  # pprint.pprint(wl_dict)

src/t/r/troy-0.0.3/tests/unittests/planner/test_derive_overlay.py   troy(Download)
    wl_dict = tc.workload_dict
    wl = troy.Workload()
    planner = troy.Planner()
  # pprint.pprint(wl_dict)

src/t/r/troy-0.0.3/tests/unittests/pilot/test_inspection.py   troy(Download)
    workload_dict = test_conf.workload_dict
    workload      = troy.Workload ()
    if  not 'tasks' in workload_dict :