7 | | Create a custom Django app using python manage.py startapp. |
8 | | Inside the app, implement an infinite loop to poll messages from a Kafka topic. |
9 | | Messages are rarely inserted into the Kafka topic. |
10 | | After a long idle period, when a new message is received and the app tries to query the MySQL database, the first query fails with the error (2006, 'Server has gone away'). |
11 | | Immediately after this failure, subsequent queries succeed without any errors. |
| 7 | Create a custom Django app using python manage.py startapp. |
| 8 | Inside the app, implement an infinite loop to poll messages from a Kafka topic. |
| 9 | Messages are rarely inserted into the Kafka topic. |
| 10 | After a long idle period, when a new message is received and the app tries to query the MySQL database, the first query fails with the error (2006, 'Server has gone away'). |
| 11 | Immediately after this failure, subsequent queries succeed without any errors. |
18 | | The first query fails with a 2006: 'MySQL server has gone away' error after an idle period. |
19 | | Setting CONN_HEALTH_CHECKS = True did not resolve the issue. |
20 | | Setting CONN_MAX_AGE = 30 also did not prevent the error. |
21 | | All subsequent queries after the first failure succeed immediately without issues. |
| 18 | The first query fails with a 2006: 'MySQL server has gone away' error after an idle period. |
| 19 | Setting CONN_HEALTH_CHECKS = True did not resolve the issue. |
| 20 | Setting CONN_MAX_AGE = 30 also did not prevent the error. |
| 21 | All subsequent queries after the first failure succeed immediately without issues. |