#30323: Django 2.2 autoreloader is failing intermittently (not using watchman)
---------------------------------+--------------------------------------
     Reporter:  Mark Chackerian  |                    Owner:  nobody
         Type:  Bug              |                   Status:  new
    Component:  Utilities        |                  Version:  2.2
     Severity:  Release blocker  |               Resolution:
     Keywords:  autoreloader     |             Triage Stage:  Unreviewed
    Has patch:  0                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  0                |                    UI/UX:  0
---------------------------------+--------------------------------------

Comment (by Mark Chackerian):

 I turned on the verbose loader as per Tom Forbes' request and here is how
 it starts:
 {{{
 Watching for file changes with StatReloader
 Watching for file changes with StatReloader
 Waiting for apps ready_event.
 Performing system checks...
 2019-04-05T16:24:21.447185000Z
 Apps ready_event triggered. Sending autoreload_started signal.
 Watching dir /code/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/admin/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/auth/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/contenttypes/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/sessions/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/messages/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/staticfiles/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django/contrib/sites/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-packages/corsheaders/locale
 with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django_celery_beat/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django_extensions/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django_inlinecss/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-packages/django_otp/locale with
 glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/django_otp/plugins/otp_totp/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-
 packages/encrypted_model_fields/locale with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-packages/graphene_django/locale
 with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-packages/localflavor/locale
 with glob **/*.mo.
 Watching dir /usr/local/lib/python3.7/site-packages/polymorphic/locale
 with glob **/*.mo.
 Watching dir /code/accounts/locale with glob **/*.mo.
 Watching dir /code/audits/locale with glob **/*.mo.
 Watching dir /code/borrowers/locale with glob **/*.mo.
 Watching dir /code/calendars/locale with glob **/*.mo.
 Watching dir /code/datarooms/locale with glob **/*.mo.
 Watching dir /code/deals/locale with glob **/*.mo.
 Watching dir /code/institutions/locale with glob **/*.mo.
 Watching dir /code/notifications/locale with glob **/*.mo.
 Watching dir /code/payments/locale with glob **/*.mo.
 Watching dir /code/widgets/locale with glob **/*.mo.
 System check identified no issues (0 silenced).
 April 05, 2019 - 16:24:27
 Django version 2.2, using settings 'backend.settings'
 Starting development server at http://0.0.0.0:8001/
 Quit the server with CONTROL-C.
 }}}

 Here's an example of picking up a change successfully:
 {{{
 django_1       | File /code/core/domain_utils.py. is_changed: False,
 is_new: True
 django_1       | File /code/core/domain_utils.py previous mtime: None,
 current mtime: 1554481667.0
 django_1       | /code/core/domain_utils.py notified as changed. Signal
 results: [(<function translation_file_changed at 0x7ffae676e8c8>, None)].
 django_1       | /code/core/domain_utils.py changed, reloading.
 django_1       | /code/core/domain_utils.py changed, reloading.
 django_1       | Watching for file changes with StatReloader
 django_1       | Watching for file changes with StatReloader
 django_1       | Performing system checks...
 }}}

 When the auto-reloader fails to detect a change, nothing is logged.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30323#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.b32b208267ec89e836a5356794cba624%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to