0

I am trying to run django celery and celery beat. After I start celery and celery beat this process is running every second. Is this normal?

celery-1       | [2024-03-10 16:08:11,479: INFO/MainProcess] Running job "EventPublisher.send_events (trigger: interval[0:00:01], next run at: 2024-03-10 16:08:12 IST)" (scheduled at 2024-03-10 16:08:11.478374+05:30)
celery-1       | [2024-03-10 16:08:11,479: INFO/MainProcess] Job "EventPublisher.send_events (trigger: interval[0:00:01], next run at: 2024-03-10 16:08:12 IST)" executed successfully
celery-beat-1  | [2024-03-10 16:08:11,767: INFO/MainProcess] Running job "EventPublisher.send_events (trigger: interval[0:00:01], next run at: 2024-03-10 16:08:12 IST)" (scheduled at 2024-03-10 16:08:11.766830+05:30)
celery-beat-1  | [2024-03-10 16:08:11,767: INFO/MainProcess] Job "EventPublisher.send_events (trigger: interval[0:00:01], next run at: 2024-03-10 16:08:12 IST)" executed successfully

I tried clearing redis db also tried uninstalling and installing redis,celery.

2 Answers 2

0

Try to check django_celery_beat_periodictask DB table, it may contain some records of tasks which can cause such behavior.

Sign up to request clarification or add additional context in comments.

1 Comment

@krisin Solved it !! Thank you for your help !! the thing was I was using some PHONEPAY SDK for accepting payments. which was using aps-scheduler in background which was triggering this event.
0

Solved it !! Thank you for your help !! The thing was I was using some PHONEPAY SDK for accepting payments. which was using aps-scheduler in background which was triggering this event. I dont know how it showed up in celery logs. i solved it by

PhonePePaymentClient(should_publish_events=False)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.