#5516 (You cannot submit onto CurrentThreadExecutor from its own thread)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
Concepts sous-jacents
Commentaires
- 2 ans, 6 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : All test suites passed on my machine. I pushed my changes.
- 2 ans, 6 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : Yet another little avalanche of changes, e.g. I renamed BackgroundTask back to SystemTask (because invoicing tasks are background tasks but no system tasks). The test_system_tasks now passes again.
- 2 ans, 6 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : Actually this was a nice surprise because things get clearer... I am now waiting for the first test results, expecting more surprises.
- 2 ans, 6 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : Yes, this was a seemingly little thing with big consequences. The start_task_runner() is now a single function that loops over all procedures.
- 2 ans, 6 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : The test failure indicates that this is not fully done. Currently only Consumer.run_background_tasks() loops over all task classes when calling start_task_runner(), but the linod command should do the same. And also our test case...
- 2 ans, 6 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : I am having a test failure when I run pm test in noi1e:
Traceback (most recent call last): File "/home/luc/work/book/lino_book/projects/noi1e/tests/test_system_tasks.py", line 32, in test_linod_tasks self.assertEqual(BackgroundTask.objects.all().count(), 10) AssertionError: 9 != 10 - 2 ans, 6 mois ago by Sharif Mehedi about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : Done. Did a extensive modification to linod.mixins.Runner and some other related things.
- 2 ans, 7 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : @8lurry I'd like to show this to you. Maybe you have an idea...
- 2 ans, 7 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : I tried with Python 3.10 instead of 3.11 but the result is the same: [url gitlab.com/lino-framework/book/-/jobs/6453255041 6453255041}.
- 2 ans, 7 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : Occurred in noi1e/tests/test_linod.py during [url gitlab.com/lino-framework/book/-/jobs/6448925683 book test run on GitLab].. More precisely in [url gitlab.com/lino-framework/book/-/blob/master/lino_book/projects/noi1e/tests/test_linod.py?ref_type=heads#L122 line 122] when running Background task #...
- 2 ans, 7 mois ago by Luc Saffre about #5516 (You cannot submit onto CurrentThreadExecutor from its own thread) : Created new Ticket #5516 (You cannot submit onto CurrentThreadExecutor from its own thread).