Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
workflow_config_gru_AlphaCustom.yaml
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
```
docker run -d --name prefect-postgres -v prefectdb:/var/lib/postgresql/data -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=prefect -e POSTGRES_DB=prefect postgres:latest
```
#### 安装prefect包
```
pip install prefect
```

#### 设置prefect数据库

Expand All @@ -17,23 +21,28 @@ prefect config set PREFECT_API_DATABASE_CONNECTION_URL="postgresql+asyncpg://pos
#### 启动

```
prefect server start
docker start prefect-postgres
prefect server start
```


#### 部署prefec
#### 部署prefect

Deployment configuration saved to prefect.yaml! You can now deploy using this deployment configuration with:
部署配置已保存到 prefect.yaml!您现在可以使用此部署配置进行部署:

$ prefect deploy -n default

You can also make changes to this deployment configuration by making changes to the prefect.yaml file.
您还可以通过更改 prefect.yaml 文件来更改此部署配置。

To execute flow runs from this deployment, start a worker in a separate terminal that pulls work from the 'default' work pool:
要从此部署执行流程运行,请在单独的终端中启动一个工作程序,从“默认”工作池中提取工作:

$ prefect worker start --pool 'default'

To schedule a run for this deployment, use the following command:
要安排此部署的运行,请使用以下命令:

$ prefect deployment run 'qlib_workflow/default'

Expand All @@ -48,7 +57,10 @@ docker exec -it superset superset-init
pip install duckdb-engine -i https://pypi.tuna.tsinghua.edu.cn/simple
```

重启superset
#### 重启superset
```
docker restart superset
```



Expand Down