Skip to content

Commit 1df5311

Browse files
committed
update celery.py
1 parent 48a2657 commit 1df5311

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pythonkr_backend/pythonkr_backend/celery.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ def init_worker(*args, **kwargs):
2626
environment="prod",
2727
service_name="celery-worker",
2828
send_to_logfire="if-token-present",
29+
code_source=logfire.CodeSource(
30+
repository = 'https://github.com/pythonkr/python.or.kr-wip',
31+
revision = sha_service_version,
32+
root_path = '/'
33+
)
2934
)
3035
logfire.instrument_celery()
3136
logfire.instrument_pydantic_ai()
@@ -37,6 +42,11 @@ def init_beat(*args, **kwargs):
3742
environment="prod",
3843
service_name="celery-beat",
3944
send_to_logfire="if-token-present",
45+
code_source=logfire.CodeSource(
46+
repository = 'https://github.com/pythonkr/python.or.kr-wip',
47+
revision = sha_service_version,
48+
root_path = '/'
49+
)
4050
)
4151
logfire.instrument_celery()
4252
logfire.instrument_pydantic_ai()

0 commit comments

Comments
 (0)