v1.1.0
Browse files10 unmodified lines1112131415161742 unmodified lines606162636465666768697071727374757677783 unmodified lines8283848586878838 unmodified lines12712812913013110 unmodified linesfrom aiflows import loggingfrom aiflows.flow_cache import CACHING_PARAMETERS, clear_cachefrom aiflows.utils import serve_utilsfrom aiflows.workers import run_dispatch_worker_threadfrom aiflows.messages import FlowMessagefrom aiflows.interfaces import KeyInterface42 unmodified lines#3. ~~~~ Serve The Flow ~~~~# serve_utils.recursive_serve_flow(# cl = cl,# flow_class_name="flow_modules.aiflows.ControllerExecutorFlowModule.WikiSearchAtomicFlow",# flow_endpoint="WikiSearchAtomicFlow",# )# serve_utils.serve_flow(# cl = cl,# flow_class_name="flow_modules.aiflows.ControllerExecutorFlowModule.ControllerAtomicFlow",# flow_endpoint="ControllerAtomicFlow",# )serve_utils.recursive_serve_flow(cl = cl,flow_class_name="flow_modules.aiflows.ControllerExecutorFlowModule.ControllerExecutorFlow",flow_endpoint="ControllerExecutorFlow",3 unmodified linesrun_dispatch_worker_thread(cl)#5. ~~~~~Mount the flow and get its proxy~~~~~~proxy_flow= serve_utils.get_flow_instance(cl=cl,flow_endpoint="ControllerExecutorFlow",user_id="local",38 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serve_utils.delete_served_flow(cl, "FlowModule")10 unmodified lines1112131415161742 unmodified lines606162636465666768697071727374757677783 unmodified lines8283848586878838 unmodified lines12712812913013110 unmodified linesfrom aiflows import loggingfrom aiflows.flow_cache import CACHING_PARAMETERS, clear_cachefrom aiflows.utils import servingfrom aiflows.workers import run_dispatch_worker_threadfrom aiflows.messages import FlowMessagefrom aiflows.interfaces import KeyInterface42 unmodified lines#3. ~~~~ Serve The Flow ~~~~# serving.recursive_serve_flow(# cl = cl,# flow_class_name="flow_modules.aiflows.ControllerExecutorFlowModule.WikiSearchAtomicFlow",# flow_endpoint="WikiSearchAtomicFlow",# )# serving.serve_flow(# cl = cl,# flow_class_name="flow_modules.aiflows.ControllerExecutorFlowModule.ControllerAtomicFlow",# flow_endpoint="ControllerAtomicFlow",# )serving.recursive_serve_flow(cl = cl,flow_class_name="flow_modules.aiflows.ControllerExecutorFlowModule.ControllerExecutorFlow",flow_endpoint="ControllerExecutorFlow",3 unmodified linesrun_dispatch_worker_thread(cl)#5. ~~~~~Mount the flow and get its proxy~~~~~~proxy_flow= serving.get_flow_instance(cl=cl,flow_endpoint="ControllerExecutorFlow",user_id="local",38 unmodified lines#9. ~~~~~Optional: Unserve Flow~~~~~~# serving.delete_served_flow(cl, "FlowModule")
run.py+6-6