[00:02:25] madmercen is now away
[00:03:48] madmercen is now online
[00:09:24] fuzzy is now online
[00:18:55] levsha is now offline
[00:19:01] levsha is now online
[00:21:03] fuzzy is now online
[00:25:21] blw0rm is now offline
[00:34:10] fuzzy is now online
[00:36:41] fuzzy is now online
[00:43:42] MaXGGXaM is now away
[00:49:25] fuzzy is now online
[00:53:41] MaXGGXaM is now xa
[00:53:49] madmercen is now away
[00:58:29] fuzzy is now online
[01:03:50] madmercen is now xa
[01:07:32] madmercen is now online
[01:11:48] levsha is now offline
[01:14:35] remo: fuzzy: всё, обчитался гугла. Не знаю как решить эту задачу
[01:17:10] remo: http://paste.debian.net/hidden/9d3ba5d2/
[01:17:32] remo: еще раз: после отработки всех тредов в queue треды не завершают свою работу
[01:21:23] madmercen is now away
[01:21:32] madmercen is now online
[01:23:13] fuzzy is now online
[01:23:54] fuzzy is now online
[01:27:21] fuzzy: queue.join возращает?
[01:31:34] madmercen is now away
[01:35:16] gigimon is now offline
[01:35:16] madmercen is now online
[01:37:17] remo: fuzzy: wait_completion -->self.tasks.join()
[01:38:04] fuzzy: да
[01:38:11] fuzzy: и оно возвращает?
[01:38:17] fuzzy: выполняется join()?
[01:39:50] remo: fuzzy: да
[01:40:19] fuzzy: и возвращает?
[01:40:22] fuzzy: что возвращает?
[01:40:34] slav0nic is now offline
[01:43:49] remo: fuzzy: None
[01:45:15] remo: qsize() возвращает 0
[01:45:23] madmercen is now away
[01:45:26] remo: значит в очереди нет task
[01:46:03] remo: self.tasks.empty() возвращает True
[01:46:04] fuzzy: хорошо
[01:46:47] fuzzy: посмотри стеки тредов, после того, как join() вернулся
[01:47:28] fuzzy: http://stackoverflow.com/a/7317379/4940539
[01:48:32] AlexZenon is now xa
[01:48:53] remo: fuzzy: ок, я получил {140132216657664: <frame object at 0x7f7360000fe0>, 140132225050368: <frame object at 0x7f7368001010>, 140132267013888: <frame object at 0x7f732c000b50>, 140132275406592: <frame object at 0x7f7344001e30>, 140132283799296: <frame object at 0x7f737c000b50>, 140133953160960: <frame
object at 0x7f73640011c0>, 140132292192000: <frame object at 0x7f7390000b50>, 140134481639168: <frame object at 0x7f731c000b50>, 140132308977408: <frame object at 0x7f7350000fe0>, 140133424682752: <frame object at 0x7f7344001bf0>, 140132317370112: <frame object at 0x7f7364000b50>, 140134490031872: <frame object at 0x7f7348000b50>, 140132325762816: <frame object at 0x7f7330000dd0>, 140132871026432: ... } далее что ?
[01:54:33] remo: fuzzy:
# ThreadID: 140324852700928
File: "/usr/lib/python2.7/threading.py", line 783, in __bootstrap
self.__bootstrap_inner()
File: "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File: "./test.py", line 366, in run
func, args, kargs = self.tasks.get()
File: "/usr/lib/python2.7/Queue.py", line 168, in get
self.not_empty.wait()
File: "/usr/lib/python2.7/threading.py", line 340, in wait
waiter.acquire()
[01:55:22] madmercen is now xa
[02:01:46] fuzzy is now online
[02:09:07] fuzzy is now online
[02:09:37] fuzzy: и что это значит?
[02:15:48] remo: fuzzy: это ? https://bugs.python.org/issue24026
[02:15:57] fuzzy: неет
[02:16:10] fuzzy: это значит, что твои демонические треды не завершились
[02:16:18] fuzzy: когда они должны завершиться?
[02:17:48] remo: fuzzy: когда основной процесс завершится
[02:17:51] remo: верно ?
[02:17:59] fuzzy: частично
[02:18:08] fuzzy: когда все недемонические треды (например main) завершатся
[02:18:18] fuzzy: у тебя main завершился?
[02:18:36] remo: fuzzy: нет, не завершился
[02:18:52] fuzzy: тогда не удивительно, что демонические тоже живы
[02:18:57] remo: fuzzy: ну так от осознания этого не легче.
[02:19:18] fuzzy: странно
[02:19:47] remo: fuzzy: ты по-моему видел мой кусок кода, в цикле которого раз за разом запускаются треды
[02:19:59] fuzzy: да
[02:20:24] remo: fuzzy: и этот цикл бесконечный. Вопрос заключается в том, что делать в данном случае, если процесс не может быть завершен
[02:20:40] fuzzy: не делать бесконечный цикл?
[02:20:46] fuzzy: чтобы процесс мог быть завершен?
[02:20:55] fuzzy: или ты не хочешь его зварешить?
[02:22:13] remo: fuzzy: ну это демон. Как я могу его завершить ?
[02:22:36] fuzzy: а, то есть ты в демоне периодически создаёшь новые тредпулы?
[02:23:47] remo: fuzzy: да, есть job'ы, в которых создаются тредпулы. Сам job крутится в цикле с таймаутом
[02:24:15] fuzzy: 1. не создавай тредпулы
[02:24:20] fuzzy: в этом же смысл тредпула
[02:24:23] fuzzy: создать один раз
[02:24:26] fuzzy: и потом его использовать
[02:27:14] remo: fuzzy:
job --> get_list
job --> iter_sensor
iter_sensor --> exec_sensor(1) --> exec_sensor(2)

[02:27:56] remo: где 1, 2 - объекты списка, который возвращает get_list
[02:28:06] remo: их много. порядка 30к
[02:28:33] fuzzy: просто используй один тредпул
[02:28:35] remo: я их могу запускать последовательно. Но это долго. Поэтому и применил pool
[02:28:45] fuzzy: один раз создай
[02:28:50] fuzzy: с ограниченным количеством тредов
[02:28:57] fuzzy: и выполняй одним тредпулом всю работу
[02:29:16] fuzzy: хорошо?
[02:29:45] remo: fuzzy: не хорошо
[02:29:48] fuzzy is now online
[02:31:40] remo: fuzzy: я тебе огласил один job. А он не один
[02:31:52] remo: их по меньшей мере 50
[02:32:23] fuzzy: и что?
[02:33:17] remo: fuzzy: я сейчас проверю твою идею
[02:35:16] fuzzy: я пока пойду посплю
[02:35:22] remo: fuzzy: :)
[02:36:02] fuzzy is now away
[02:39:16] fuzzy is now away
[02:39:17] fuzzy is now away
[02:43:58] nuclearworm is now offline
[02:46:04] fuzzy is now away
[02:58:01] fuzzy is now away
[02:58:32] fuzzy is now away
[03:28:43] : Используемый вами псевдоним не зарегистрирован
[03:28:43] MaXGGXaM is now xa
[03:28:43] madmercen is now xa
[03:28:43] remo is now away
[03:28:43] fuzzy is now away
[03:28:43] AlexZenon is now xa
[03:28:43] magic_pony is now online
[03:35:44] nuclearworm is now away
[03:43:10] madmercen is now online
[03:55:16] remo: fuzzy: нет. Если я в основном теле инициализирую пул и этот пул передаю в модуль в метод, то я его в модуле вижу(<modules.system.function.ThreadPool instance at 0x7fb42be9ed88>), но когда добавляю задания ему, то он их не выполняет
[03:55:29] remo: и в error-ах ничего нет. Пусто-пусто
[04:01:02] madmercen is now away
[04:07:12] madmercen is now online
[04:21:30] remo is now offline
[04:23:13] madmercen is now away
[04:33:14] madmercen is now xa
[05:03:18] : Используемый вами псевдоним не зарегистрирован
[05:03:18] nuclearworm is now away
[05:03:18] MaXGGXaM is now xa
[05:03:18] madmercen is now xa
[05:03:18] fuzzy is now away
[05:03:18] AlexZenon is now xa
[05:03:18] magic_pony is now online
[05:14:52] fuzzy is now away
[05:44:59] : Используемый вами псевдоним не зарегистрирован
[05:44:59] nuclearworm is now away
[05:44:59] MaXGGXaM is now xa
[05:44:59] madmercen is now xa
[05:44:59] fuzzy is now away
[05:44:59] AlexZenon is now xa
[05:44:59] magic_pony is now online
[05:45:08] MaXGGXaM is now online
[05:50:13] MaXGGXaM is now away
[06:00:13] MaXGGXaM is now xa
[06:10:50] madmercen is now online
[06:10:52] fuzzy is now away
[06:20:54] madmercen is now away
[06:30:54] madmercen is now xa
[06:50:16] MaXGGXaM is now online
[07:20:24] : Используемый вами псевдоним не зарегистрирован
[07:20:24] nuclearworm is now away
[07:20:24] MaXGGXaM is now online
[07:20:24] madmercen is now xa
[07:20:24] fuzzy is now away
[07:20:24] AlexZenon is now xa
[07:20:24] magic_pony is now online
[07:23:31] MaXGGXaM is now away
[07:33:31] MaXGGXaM is now xa
[08:03:37] : Используемый вами псевдоним не зарегистрирован
[08:03:37] nuclearworm is now away
[08:03:37] MaXGGXaM is now xa
[08:03:37] madmercen is now xa
[08:03:37] fuzzy is now away
[08:03:37] AlexZenon is now xa
[08:03:37] magic_pony is now online
[08:31:26] madmercen is now online
[08:51:32] madmercen is now offline
[09:20:33] nuclearworm is now away
[09:20:35] nuclearworm is now online
[09:50:41] : Используемый вами псевдоним не зарегистрирован
[09:50:41] nuclearworm is now online
[09:50:41] MaXGGXaM is now xa
[09:50:41] fuzzy is now away
[09:50:41] AlexZenon is now xa
[09:50:41] magic_pony is now online
[10:18:04] fuzzy is now away
[10:18:06] fuzzy is now online
[10:22:48] slav0nic is now online
[10:41:34] fuzzy is now online
[10:44:49] fuzzy is now online
[10:53:10] levsha is now online
[10:55:36] fuzzy is now online
[10:59:35] fuzzy is now online
[11:04:58] levsha is now offline
[11:12:47] fuzzy is now online
[11:12:48] fuzzy is now online
[11:16:25] slav0nic is now away
[11:16:57] fuzzy is now online
[11:17:27] gigimon is now online
[11:19:09] slav0nic is now online
[11:25:31] fuzzy is now online
[11:26:53] fuzzy is now away
[11:49:01] gigimon is now online
[11:50:59] gigimon is now online
[11:51:02] fuzzy is now online
[12:09:12] gigimon is now online
[12:14:12] gigimon is now away
[12:39:44] gigimon is now away
[12:39:46] gigimon is now online
[13:09:51] : Используемый вами псевдоним не зарегистрирован
[13:09:51] slav0nic is now online
[13:09:51] nuclearworm is now online
[13:09:51] MaXGGXaM is now xa
[13:09:51] gigimon is now online
[13:09:51] fuzzy is now online
[13:09:51] AlexZenon is now xa
[13:09:51] magic_pony is now online
[13:10:36] madmercen is now online
[13:37:26] slav0nic is now away
[13:38:05] fuzzy is now away
[13:38:05] fuzzy is now online
[13:38:05] fuzzy is now away
[13:40:07] slav0nic is now online
[13:42:55] fuzzy is now online
[13:46:10] gigimon is now online
[13:47:00] gigimon is now online
[13:56:38] madmercen is now away
[14:02:11] slav0nic is now away
[14:03:56] madmercen is now online
[14:25:09] slav0nic is now offline
[14:32:17] slav0nic is now online
[14:35:44] madmercen is now away
[14:45:44] madmercen is now xa
[14:58:56] slav0nic is now away
[15:02:26] slav0nic is now online
[15:09:08] fuzzy is now away
[15:12:30] gigimon is now offline
[15:12:30] gigimon is now online
[15:17:54] remo is now away
[15:19:02] madmercen is now online
[15:19:12] fuzzy is now away
[15:19:22] fuzzy is now away
[15:19:53] fuzzy is now away
[15:21:48] AlexZenon is now online
[15:34:30] slav0nic is now away
[15:35:50] slav0nic is now online
[15:42:19] fuzzy is now away
[15:42:25] fuzzy is now online
[15:44:36] slav0nic is now away
[15:54:36] slav0nic is now xa
[16:02:26] slav0nic is now online
[16:09:08] madmercen is now away
[16:19:08] madmercen is now xa
[16:22:50] nuclearworm is now away
[16:22:50] nuclearworm is now away
[16:22:56] madmercen is now online
[16:30:47] blw0rm is now online
[16:44:21] madmercen is now away
[16:54:22] madmercen is now xa
[16:54:44] slav0nic is now away
[16:55:02] fuzzy is now online
[16:56:38] slav0nic is now online
[17:06:18] slav0nic is now away
[17:07:52] slav0nic is now online
[17:10:02] madmercen is now online
[17:15:50] gigimon is now online
[17:20:56] gigimon is now away
[17:21:04] madmercen is now away
[17:23:40] MaXGGXaM is now online
[17:30:03] gigimon is now away
[17:30:03] gigimon is now online
[17:31:04] madmercen is now xa
[17:31:05] remo: вопрос по тредам закрыт)
[17:38:06] fuzzy is now online
[17:48:14] nuclearworm is now away
[17:48:15] nuclearworm is now online
[17:49:49] slav0nic is now away
[17:53:26] slav0nic is now online
[18:01:40] dicos is now online
[18:01:59] fuzzy is now away
[18:02:13] fuzzy is now online
[18:03:49] MaXGGXaM is now away
[18:07:40] dicos is now online
[18:10:01] MaXGGXaM is now online
[18:15:10] MaXGGXaM is now away
[18:20:08] nuclearworm is now away
[18:20:09] nuclearworm is now away
[18:25:10] MaXGGXaM is now xa
[18:31:29] gigimon is now offline
[18:33:41] nuclearworm is now away
[18:33:42] nuclearworm is now online
[18:34:40] dicos is now offline
[18:39:58] slav0nic is now away
[18:41:36] slav0nic is now online
[18:52:10] madmercen is now online
[19:02:05] blw0rm is now away
[19:03:26] levsha is now online
[19:16:32] slav0nic is now away
[19:22:34] slav0nic is now online
[19:27:44] slav0nic is now away
[19:33:16] slav0nic is now online
[19:35:20] MaXGGXaM is now online
[19:39:18] levsha is now offline
[19:47:40] remo is now offline
[19:48:30] slav0nic is now away
[19:51:07] blw0rm is now online
[19:51:21] MaXGGXaM is now away
[19:56:57] MaXGGXaM is now online
[19:58:30] slav0nic is now xa
[19:59:18] fuzzy is now away
[20:02:20] slav0nic is now online
[20:09:22] fuzzy is now away
[20:09:32] fuzzy is now away
[20:10:03] fuzzy is now away
[20:11:26] slav0nic is now away
[20:15:32] slav0nic is now online
[20:24:31] MaXGGXaM is now away
[20:31:10] MaXGGXaM is now online
[20:40:22] slav0nic is now away
[20:50:22] slav0nic is now xa
[20:50:50] slav0nic is now online
[21:06:15] fuzzy is now away
[21:06:20] fuzzy is now online
[21:10:25] fuzzy is now away
[21:20:13] slav0nic is now away
[21:20:22] slav0nic is now online
[21:20:28] fuzzy is now away
[21:20:28] fuzzy is now away
[21:30:35] fuzzy is now away
[21:35:32] slav0nic is now away
[21:35:44] slav0nic is now online
[21:36:02] gigimon is now online
[21:42:20] slav0nic is now away
[21:52:20] slav0nic is now xa
[22:21:40] fuzzy is now away
[22:26:26] gigimon is now offline
[22:26:54] gigimon is now online
[22:52:24] fuzzy is now away
[23:20:32] nuclearworm is now away
[23:20:33] nuclearworm is now away
[23:27:32] nuclearworm is now away
[23:27:33] nuclearworm is now online
[23:30:05] slav0nic is now online
[23:38:38] levsha is now online
[23:41:26] slav0nic is now away
[23:51:26] slav0nic is now xa
[23:54:10] slav0nic is now online