Skip to content

Commit eb5ed86

Browse files
authored
Rename async modules to async_api (#2066)
1 parent aff307e commit eb5ed86

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

pkg/cortex/serve/init/bootloader.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ elif [ "$CORTEX_KIND" = "BatchAPI" ]; then
175175
create_s6_service "batch" "cd /mnt/project && $source_env_file_cmd && PYTHONUNBUFFERED=TRUE PYTHONPATH=$PYTHONPATH:$CORTEX_PYTHON_PATH exec /opt/conda/envs/env/bin/python /src/cortex/serve/start/batch.py"
176176
elif [ "$CORTEX_KIND" = "AsyncAPI" ]; then
177177
create_s6_service "py_init" "cd /mnt/project && exec /opt/conda/envs/env/bin/python /src/cortex/serve/init/script.py"
178-
create_s6_service "async" "cd /mnt/project && $source_env_file_cmd && PYTHONUNBUFFERED=TRUE PYTHONPATH=$PYTHONPATH:$CORTEX_PYTHON_PATH exec /opt/conda/envs/env/bin/python /src/cortex/serve/start/async.py"
178+
create_s6_service "async" "cd /mnt/project && $source_env_file_cmd && PYTHONUNBUFFERED=TRUE PYTHONPATH=$PYTHONPATH:$CORTEX_PYTHON_PATH exec /opt/conda/envs/env/bin/python /src/cortex/serve/start/async_api.py"
179179
elif [ "$CORTEX_KIND" = "TaskAPI" ]; then
180180
create_s6_service "task" "cd /mnt/project && $source_env_file_cmd && PYTHONUNBUFFERED=TRUE PYTHONPATH=$PYTHONPATH:$CORTEX_PYTHON_PATH exec /opt/conda/envs/env/bin/python /src/cortex/serve/start/task.py"
181181
fi

pkg/cortex/serve/start/async.py renamed to pkg/cortex/serve/start/async_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
import boto3
2222

2323
from cortex_internal.lib.api import get_spec
24-
from cortex_internal.lib.api.async import AsyncAPI
24+
from cortex_internal.lib.api.async_api import AsyncAPI
2525
from cortex_internal.lib.exceptions import UserRuntimeException
2626
from cortex_internal.lib.log import configure_logger
2727
from cortex_internal.lib.metrics import MetricsClient

0 commit comments

Comments
 (0)