#32094: flush() on self.stdout/stderr management commands doesn't work (notably
called during migrate command)
-------------------------------------+-------------------------------------
               Reporter:  Thomas     |          Owner:  Thomas Riccardi
  Riccardi                           |
                   Type:             |         Status:  assigned
  Uncategorized                      |
              Component:  Core       |        Version:  3.1
  (Management commands)              |       Keywords:  command flush
               Severity:  Normal     |  migration
           Triage Stage:             |      Has patch:  1
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 `flush()` is notably called during `migrate` command; it doesn't work, and
 a long migration effectively prints to `stderr` no relevant information up
 until the end:

 {{{
 Operations to perform:
   Apply all migrations: myapp
 Running migrations:
 }}}

 Then nothing more, but the migration is being done.
 Then at the end of the real migration, the rest is flushed:

 {{{
   Applying myapp.0002_auto_20200817_1030... OK
 }}}

 Expected behavior:

 {{{
 Operations to perform:
   Apply all migrations: myapp
 Running migrations:
   Applying myapp.0002_auto_20200817_1030...
 }}}

 then work
 then `OK`

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32094>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/058.03c13e3f7160dfe7229c303ec71d2495%40djangoproject.com.

Reply via email to