File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
pythonkr_backend/pythonkr_backend Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -62,5 +62,6 @@ gunicorn --workers=2 \
62
62
63
63
# start celery worker with beat
64
64
celery -A pythonkr_backend multi start worker1 -c2 -B \
65
+ --loglevel=info \
65
66
--pidfile=/home/pk/celery-%n.pid \
66
67
--logfile=/home/pk/logs/celery-%n%I.log
Original file line number Diff line number Diff line change 23
23
@worker_init .connect ()
24
24
def init_worker (* args , ** kwargs ):
25
25
logfire .configure (service_name = "celery-worker" , send_to_logfire = 'if-token-present' )
26
- logfire .instrument_django ()
27
26
logfire .instrument_celery ()
28
27
29
28
@beat_init .connect ()
30
29
def init_beat (* args , ** kwargs ):
31
30
logfire .configure (service_name = "celery-beat" , send_to_logfire = 'if-token-present' )
32
- logfire .instrument_django ()
33
31
logfire .instrument_celery ()
You can’t perform that action at this time.
0 commit comments