Message236273
When Multiprocessing.Pool.map is used for a script that registers atexit handlers, the atexit handlers are not executed when the pool threads quit.
STR:
1. Run attached file in Python 2.7 with 'python task_spawn.py'
2. Observe the printed output.
Observed:
Console prints:
CREATED TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_qef8r_
CREATED TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_axi9tt
CREATED TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_vx6fmu
task1
task2
ATEXIT: REMOVING TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_qef8r_
Expected:
Console should print:
CREATED TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_qef8r_
CREATED TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_axi9tt
CREATED TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_vx6fmu
task1
task2
ATEXIT: REMOVING TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_vx6fmu
ATEXIT: REMOVING TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_axi9tt
ATEXIT: REMOVING TEMP DIRECTORY c:\users\clb\appdata\local\temp\temp_qef8r_ |
|
Date |
User |
Action |
Args |
2015-02-20 11:48:28 | juj | set | recipients:
+ juj |
2015-02-20 11:48:28 | juj | set | messageid: <1424432908.71.0.0710990700334.issue23489@psf.upfronthosting.co.za> |
2015-02-20 11:48:28 | juj | link | issue23489 messages |
2015-02-20 11:48:28 | juj | create | |
|