Beispiel #1
0
def _run_at_target(action_ex_id,
                   action_cls_str,
                   action_cls_attrs,
                   params,
                   safe_rerun,
                   target=None,
                   async_=True):

    # We'll just call executor directly for testing purposes.
    executor = d_exe.DefaultExecutor()

    executor.run_action(action_ex_id, action_cls_str, action_cls_attrs, params,
                        safe_rerun)
Beispiel #2
0
def _run_at_target(action,
                   action_ex_id,
                   safe_rerun,
                   exec_ctx,
                   target=None,
                   async_=True,
                   timeout=None):
    # We'll just call executor directly for testing purposes.
    executor = d_exe.DefaultExecutor()

    executor.run_action(action,
                        action_ex_id,
                        safe_rerun,
                        exec_ctx,
                        redelivered=True)
Beispiel #3
0
def _run_at_target(action_ex_id,
                   action_class_str,
                   attributes,
                   action_params,
                   safe_rerun,
                   execution_context,
                   target=None,
                   async_=True):
    # We'll just call executor directly for testing purposes.
    executor = d_exe.DefaultExecutor()

    executor.run_action(action_ex_id,
                        action_class_str,
                        attributes,
                        action_params,
                        safe_rerun,
                        execution_context,
                        redelivered=True)
def get_oslo_service(setup_profiler=True):
    return ExecutorServer(exe.DefaultExecutor(), setup_profiler=setup_profiler)