Call for comments: test (remote) connections using the checks framework

46 views
Skip to first unread message

Alex Morozov

unread,
Dec 10, 2015, 8:13:18 AM12/10/15
to django-d...@googlegroups.com
Hi guys,

I'd like to gather some opinions on ticket #2445 before actually starting to code.
Basically the idea is to extend the `manage.py check` command, adding the ability to test connections to remote services your project depends on.

Here's the plan so far:
  • Add a `remote` kwarg to the `checks.register()` decorator
  • Extend the `manage.py check` with a `--remotes` option, which tests *only* connectivity, skipping any other checks.
  • Add some actual connection checks to the core:
    • Database
    • SMTP server
    • Cache
  • Document this feature
  • Notify the popular modules' authors that they could make use of a new feature (Celery is the example that comes to my mind)

My key concerns are:
  • Do we have another, more beatiful way instead of adding the kwarg? Dealing with two separate check "dimensions" (deployment, remote) would be a mess.
  • What specific checks should be shipped with the core?
  • Shall we make the connections test skip other checks, or maybe just make the connection-related ones the warnings?

Here's the link to the ticket for your convenience: https://code.djangoproject.com/ticket/24475
Thanks!

Regards,
Alex Morozov
Reply all
Reply to author
Forward
0 new messages