diff --git a/.run/Celery Threads.run.xml b/.run/Celery Threads.run.xml
index e31a4ce14af..f2cba609d07 100644
--- a/.run/Celery Threads.run.xml
+++ b/.run/Celery Threads.run.xml
@@ -15,13 +15,13 @@
-
+
-
-
+
+
diff --git a/.run/Celery.run.xml b/.run/Celery.run.xml
index d6b8b57f08a..21598a2d753 100644
--- a/.run/Celery.run.xml
+++ b/.run/Celery.run.xml
@@ -15,13 +15,13 @@
-
+
-
-
+
+
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 5cf3f0f5d29..c0605a5a064 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -79,11 +79,17 @@
"include": ["posthog/**/*.py"]
},
"request": "launch",
- "program": "${workspaceFolder}/env/bin/celery",
+ "program": "${workspaceFolder}/env/bin/watchmedo",
"console": "integratedTerminal",
"python": "${workspaceFolder}/env/bin/python",
"cwd": "${workspaceFolder}",
"args": [
+ "auto-restart",
+ "--directory=./",
+ "--pattern=*.py",
+ "--recursive",
+ "--",
+ "celery",
"-A",
"posthog",
"worker",
@@ -115,11 +121,23 @@
"include": ["posthog/**/*.py"]
},
"request": "launch",
- "program": "${workspaceFolder}/env/bin/celery",
+ "program": "${workspaceFolder}/env/bin/watchmedo",
"console": "integratedTerminal",
"python": "${workspaceFolder}/env/bin/python",
"cwd": "${workspaceFolder}",
- "args": ["-A", "posthog", "beat", "-S", "redbeat.RedBeatScheduler"],
+ "args": [
+ "auto-restart",
+ "--directory=./",
+ "--pattern=*.py",
+ "--recursive",
+ "--",
+ "celery",
+ "-A",
+ "posthog",
+ "beat",
+ "-S",
+ "redbeat.RedBeatScheduler"
+ ],
"envFile": "${workspaceFolder}/bin/celery-queues.env",
"env": {
"SKIP_ASYNC_MIGRATIONS_SETUP": "0",
diff --git a/requirements-dev.in b/requirements-dev.in
index 35ad7044d22..03858feaa89 100644
--- a/requirements-dev.in
+++ b/requirements-dev.in
@@ -49,6 +49,7 @@ pytest-xdist==3.6.1
python-dateutil>=2.8.2
responses==0.23.1
syrupy~=4.6.0
+watchdog==2.1.8
flaky==3.7.0
aioresponses==0.7.6
prance==23.06.21.0