fix: 兼容脚本管理未解压上传包
This commit is contained in:
@@ -52,9 +52,9 @@ docker build -t interference-etl-runtime:1.1 .
|
||||
python scripts\build_offline_package.py
|
||||
```
|
||||
|
||||
The generated `dist/InterferenceETL-offline-1.1.zip` contains `main.py` plus `openpyxl`, `et_xmlfile`, and `PyMySQL`. The builder verifies imports using the standard `python:3.13.11-slim` image, so the uploaded workspace does not need an online `pip install` or a custom runtime image. The ZIP is 325,489 bytes with SHA-256 `4F655D35F89A826F28A41578C9EE3E347CE31A27619D3D06AE0FD9587660DCAF`.
|
||||
The generated `dist/InterferenceETL-offline-1.1.zip` contains `main.py`, a ZIP execution entry point, and `openpyxl`, `et_xmlfile`, and `PyMySQL`. The builder verifies both imports and ZIP execution using the standard `python:3.13.11-slim` image, so the uploaded workspace does not need an online `pip install` or a custom runtime image.
|
||||
|
||||
Create the project, then upload and extract the ZIP in its Script Management workspace. Use these project settings:
|
||||
Create the project, then upload and extract the ZIP in its Script Management workspace. The normal file tree should contain `main.py` at `/workspace/main.py`. Use these project settings:
|
||||
|
||||
```text
|
||||
Name: InterferenceETL
|
||||
@@ -65,6 +65,8 @@ Run command: python main.py
|
||||
Timeout: 1800 seconds
|
||||
```
|
||||
|
||||
If the server keeps the ZIP as one file instead of extracting it, use `python InterferenceETL-offline-1.1.zip` as the run command. The ZIP contains `__main__.py` for this mode.
|
||||
|
||||
Configure only the Metrix source settings in the project environment:
|
||||
|
||||
```json
|
||||
|
||||
Reference in New Issue
Block a user