Skip to content

Commit b80fa66

Browse files
added debug config
1 parent ed260c1 commit b80fa66

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.vscode/launch.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Python: Uvicorn (FastAPI)",
6+
"type": "python",
7+
"request": "launch",
8+
"module": "uvicorn",
9+
"args": ["app.main:app", "--reload", "--host", "127.0.0.1", "--port", "8000"],
10+
"env": { "PYTHONPATH": "${workspaceFolder}" },
11+
"console": "integratedTerminal",
12+
"justMyCode": false
13+
},
14+
{
15+
"name": "Python: Celery Worker",
16+
"type": "python",
17+
"request": "launch",
18+
"module": "celery",
19+
"args": ["-A", "app.worker.celery_app", "worker", "--pool=solo","-l", "info"],
20+
"env": { "PYTHONPATH": "${workspaceFolder}" },
21+
"console": "integratedTerminal",
22+
"justMyCode": false
23+
}
24+
],
25+
"compounds": [
26+
{
27+
"name": "Run API + Worker",
28+
"configurations": ["Python: Uvicorn (FastAPI)", "Python: Celery Worker"]
29+
}
30+
]
31+
}

0 commit comments

Comments
 (0)