コード例 #1
0
ファイル: main.py プロジェクト: VivanVatsa/orchest
def main():
    args = get_command_line_args()

    with start_plasma_store(
            memory=args.memory,
            store_socket_name=args.store_socket_name) as (store_socket_name,
                                                          _):
        # Start the manager that handles eviction by listening to the
        # notification socket of the store.
        start_manager(store_socket_name, pipeline_fname=args.pipeline_fname)
コード例 #2
0
ファイル: main.py プロジェクト: obulat/orchest
def main():
    args = get_command_line_args()

    with start_plasma_store(
            memory=args.memory,
            store_socket_name=args.store_socket_name) as (store_socket_name,
                                                          _):

        # Set flexible permissions to make the socket writeable to all
        # who have access to the path through the volume mount
        os.chmod(store_socket_name, 0o777)

        # Start the manager that handles eviction by listening to the
        # notification socket of the store.
        start_manager(store_socket_name, pipeline_fname=args.pipeline_fname)
コード例 #3
0
def main():
    signal.signal(signal.SIGTERM, lambda: sys.exit(0))
    args = get_command_line_args()

    memory = args.memory
    if memory is None:
        memory = utils.get_store_memory_size(args.pipeline_fname)

    with start_plasma_store(
            memory=memory,
            store_socket_name=args.store_socket_name,
    ) as (store_socket_name, _):

        # Set flexible permissions to make the socket writeable to all
        # who have access to the path through the volume mount
        os.chmod(store_socket_name, 0o777)

        # Start the manager that handles eviction by listening to the
        # notification socket of the store.
        start_manager(store_socket_name, pipeline_fname=args.pipeline_fname)