Example #1
0
            'resource': 'local.localhost',
            'walltime': 10,
            'cpus': 1,
            'project': '',
    }

    # Create Resource Manager object with the above resource description
    rman = ResourceManager(res_dict)

    # Create Application Manager
    appman = AppManager()

    # Assign resource manager to the Application Manager
    appman.resource_manager = rman

    # Assign the workflow as a set of Pipelines to the Application Manager
    appman.assign_workflow(set([p]))

    # Run the Application Manager
    appman.run()


    p = Profiler(src='./%s'%appman.sid)

    print 'Tasks in Stage 1: ', s1_task_uids
    print 'Execution time: ', p.duration(objects = s1_task_uids, states=['SCHEDULING', 'EXECUTED'])

    print 'Tasks in Stage 2: ', s2_task_uids
    print 'Execution time: ', p.duration(objects = s2_task_uids, states=['SCHEDULING', 'EXECUTED'])
Example #2
0
        'resource': 'local.localhost',
        'walltime': 10,
        'cpus': 1,
        'project': '',
    }

    # Create Resource Manager object with the above resource description
    rman = ResourceManager(res_dict)

    # Create Application Manager
    appman = AppManager()

    # Assign resource manager to the Application Manager
    appman.resource_manager = rman

    # Assign the workflow as a set of Pipelines to the Application Manager
    appman.assign_workflow(set([p]))

    # Run the Application Manager
    appman.run()

    p = Profiler(src='./%s' % appman.sid)

    print('Tasks in Stage 1: ', s1_task_uids)
    print('Execution time: ',
          p.duration(objects=s1_task_uids, states=['SCHEDULING', 'EXECUTED']))

    print('Tasks in Stage 2: ', s2_task_uids)
    print('Execution time: ',
          p.duration(objects=s2_task_uids, states=['SCHEDULING', 'EXECUTED']))
            'resource': 'local.localhost',
            'walltime': 10,
            'cpus': 1,
            'project': '',
    }

    # Create Resource Manager object with the above resource description
    rman = ResourceManager(res_dict)

    # Create Application Manager
    appman = AppManager()

    # Assign resource manager to the Application Manager
    appman.resource_manager = rman

    # Assign the workflow as a set of Pipelines to the Application Manager
    appman.assign_workflow(set([p]))

    # Run the Application Manager
    appman.run()


    p = Profiler(src='./%s'%appman.sid)

    print 'Tasks in Stage 1: ', s1_task_uids
    print 'Execution time: ', p.duration(objects = s1_task_uids, states=['SCHEDULING', 'EXECUTED'])

    print 'Tasks in Stage 2: ', s2_task_uids
    print 'Execution time: ', p.duration(objects = s2_task_uids, states=['SCHEDULING', 'EXECUTED'])