2023-09-01 09:15:06 +08:00
|
|
|
{
|
|
|
|
"version": "0.2.0",
|
2024-10-21 10:43:49 +08:00
|
|
|
"compounds": [
|
|
|
|
{
|
|
|
|
"name": "Launch Flask and Celery",
|
|
|
|
"configurations": ["Python: Flask", "Python: Celery"]
|
|
|
|
}
|
|
|
|
],
|
2023-09-01 09:15:06 +08:00
|
|
|
"configurations": [
|
2024-01-02 23:42:00 +08:00
|
|
|
{
|
2024-06-24 09:53:26 +08:00
|
|
|
"name": "Python: Flask",
|
2024-10-21 10:43:49 +08:00
|
|
|
"consoleName": "Flask",
|
2024-04-05 17:49:09 +08:00
|
|
|
"type": "debugpy",
|
2024-01-02 23:42:00 +08:00
|
|
|
"request": "launch",
|
2024-08-20 15:37:29 +08:00
|
|
|
"python": "${workspaceFolder}/.venv/bin/python",
|
|
|
|
"cwd": "${workspaceFolder}",
|
2024-06-24 09:53:26 +08:00
|
|
|
"envFile": ".env",
|
|
|
|
"module": "flask",
|
2024-01-02 23:42:00 +08:00
|
|
|
"justMyCode": true,
|
2024-06-24 09:53:26 +08:00
|
|
|
"jinja": true,
|
2024-01-02 23:42:00 +08:00
|
|
|
"env": {
|
|
|
|
"FLASK_APP": "app.py",
|
|
|
|
"GEVENT_SUPPORT": "True"
|
|
|
|
},
|
2024-06-24 09:53:26 +08:00
|
|
|
"args": [
|
|
|
|
"run",
|
2024-08-20 15:37:29 +08:00
|
|
|
"--port=5001"
|
2024-06-24 09:53:26 +08:00
|
|
|
]
|
2024-01-02 23:42:00 +08:00
|
|
|
},
|
2023-09-01 09:15:06 +08:00
|
|
|
{
|
2024-06-24 09:53:26 +08:00
|
|
|
"name": "Python: Celery",
|
2024-10-21 10:43:49 +08:00
|
|
|
"consoleName": "Celery",
|
2024-04-05 17:49:09 +08:00
|
|
|
"type": "debugpy",
|
2023-09-01 09:15:06 +08:00
|
|
|
"request": "launch",
|
2024-08-20 15:37:29 +08:00
|
|
|
"python": "${workspaceFolder}/.venv/bin/python",
|
|
|
|
"cwd": "${workspaceFolder}",
|
2024-06-24 09:53:26 +08:00
|
|
|
"module": "celery",
|
|
|
|
"justMyCode": true,
|
|
|
|
"envFile": ".env",
|
|
|
|
"console": "integratedTerminal",
|
2023-09-01 09:15:06 +08:00
|
|
|
"env": {
|
2023-11-06 19:36:16 +08:00
|
|
|
"FLASK_APP": "app.py",
|
2023-09-01 09:15:06 +08:00
|
|
|
"FLASK_DEBUG": "1",
|
|
|
|
"GEVENT_SUPPORT": "True"
|
|
|
|
},
|
2024-06-28 00:24:37 +08:00
|
|
|
"args": [
|
|
|
|
"-A",
|
|
|
|
"app.celery",
|
|
|
|
"worker",
|
|
|
|
"-P",
|
|
|
|
"gevent",
|
|
|
|
"-c",
|
|
|
|
"1",
|
|
|
|
"--loglevel",
|
2024-10-21 10:43:49 +08:00
|
|
|
"DEBUG",
|
2024-06-28 00:24:37 +08:00
|
|
|
"-Q",
|
2024-07-01 14:21:17 +08:00
|
|
|
"dataset,generation,mail,ops_trace,app_deletion"
|
2024-06-28 00:24:37 +08:00
|
|
|
]
|
2024-10-21 10:43:49 +08:00
|
|
|
}
|
2023-09-01 09:15:06 +08:00
|
|
|
]
|
2024-10-21 10:43:49 +08:00
|
|
|
}
|