Skip to content

Commit fa857cd

Browse files
committed
Add worker bootstrap
1 parent a2f32b1 commit fa857cd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/sentry/taskworker/bootstrap.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Worker child process bootstrap.
3+
4+
Bootstraps sentry with configure() and then imports the task app
5+
"""
6+
7+
from sentry.runner import configure
8+
9+
configure()
10+
11+
from sentry.taskworker.runtime import app
12+
13+
__all__ = ("app",)

0 commit comments

Comments
 (0)