Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Add a task (or a list of tasks) to the workload.

Tasks are expected of type `TaskDescription`.

src/t/r/troy-0.0.3/troy/application/skeleton_application.py   troy(Download)
                td.arguments         = skeleton_task.arguments
 
                stage_workload.add_task (td)
 
 

src/t/r/troy-0.0.3/tests/unittests/workload_manager/test_create_workload.py   troy(Download)
    for task_dict in wl_dict['tasks'] :
        task_description = troy.TaskDescription (task_dict)
        wl.add_task (task_description)
 
  # wl._dump ()

src/t/r/troy-0.0.3/tests/unittests/planner/test_expand_workload.py   troy(Download)
    for task_dict in wl_dict['tasks']:
        task_description = troy.TaskDescription(task_dict)
        wl.add_task(task_description)
 
    for relation_dict in wl_dict['relations']:

src/t/r/troy-0.0.3/tests/unittests/planner/test_derive_overlay.py   troy(Download)
    for task_dict in wl_dict['tasks']:
        task_description = troy.TaskDescription(task_dict)
        wl.add_task(task_description)
 
    for relation_dict in wl_dict['relations']:

src/t/r/troy-0.0.3/tests/unittests/pilot/test_inspection.py   troy(Download)
    for task_dict in workload_dict['tasks'] :
        task_description = troy.TaskDescription (task_dict)
        workload.add_task (task_description)