Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feature to profile Crons commands? #608

Closed
bruno911 opened this issue Oct 19, 2022 · 2 comments
Closed

Feature to profile Crons commands? #608

bruno911 opened this issue Oct 19, 2022 · 2 comments
Labels

Comments

@bruno911
Copy link

Hi,

I was wondering if there is a feature to profile crons, or if there is a way to do it.

I noticed silk will only work when there is a request generated by a view, so is there a way to override this file so that it will also work on crons?

We love silk but we have some long running crons that we would like to debug in production.

If is not possible, could I get some minor directions on how it could be implemented so that I can create a pull request for it?

I guess after this is implemented, it will not be too hard to do a similar thing for celery, I will be happy to create both pull requests if someone could tell me more and less how you would like it to be done so that the pull request gets approved and merged.

Thank you! Congrats for the library it is really useful!

@SebCorbin
Copy link
Contributor

Duplicate of #593

@SebCorbin SebCorbin marked this as a duplicate of #593 Oct 27, 2022
@SebCorbin SebCorbin closed this as not planned Won't fix, can't repro, duplicate, stale Oct 27, 2022
@OscarVanL
Copy link

FYI I found this GitHub gist that you can use to run django-silk against arbitrary functions not wrapped in APIs. This was a good-enough workaround for me to debug some performance challenges, although it would be fantastic to see something supported by django-silk in the future.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants