Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9726 +/- ##
==========================================
- Coverage 78.51% 78.48% -0.04%
==========================================
Files 153 153
Lines 19127 19140 +13
Branches 2533 2535 +2
==========================================
+ Hits 15018 15022 +4
- Misses 3821 3828 +7
- Partials 288 290 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
auvipy
self-requested a review
May 27, 2025 07:58
auvipy
requested changes
May 27, 2025
auvipy
left a comment
Member
There was a problem hiding this comment.
thanks for the patch. we will also need unit tests to verify this changes.
Nusnus
force-pushed
the
feature/beat-json-output
branch
from
May 31, 2025 21:07
690795e to
4460fd3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new
--jsonoption to thecelery beatcommand that outputs startup configuration information in structured JSON format instead of the traditional human-readable banner format.What's Changed
--json/-jcommand line option tocelery beatcelery/bin/beat.pyto accept the new JSON flagcelery/apps/beat.pyto support JSON output formatJSON Output Format
When using
celery beat --json, the output now includes:{ "localtime": "2025-05-24T00:02:16", "configuration": { "broker": "amqp://guest:**@localhost:5672//", "loader": "celery.loaders.default.Loader", "scheduler": "celery.beat.PersistentScheduler", "db": "celerybeat-schedule", "logfile": "[stderr]@%WARNING", "maxinterval": "5.00 minutes (300s)" } }