bodo-hugo-barwich / Process

Perl Module for Multiprocessing
Other
1 stars 2 forks source link

Timeout in Process::SubProcess::Group::Wait() Method #21

Closed domibay-hugo closed 3 years ago

domibay-hugo commented 3 years ago

this fixes the timeout functionality in the Method Process::SubProcess::Group::Wait() as documented in #20

domibay-hugo commented 3 years ago

this fixes the test sequence Process::SubProcess::Group::Wait() Method which checks the Timeout Functionality in the Wait() Method as documented in the test activity log:

Test: 'Process::SubProcess::Group::Wait() Method' do ...
ok 46 - Profiling activated
ok 47 - Profiling activated
ok 48 - Profiling activated
ok 49 - scripts (count: '3'): added correctly
ok 50 - Check Interval activated
ok 51 - Execution Timeout activated
Process Group Execution Start - Time Now: '1612539299.91888' s
ok 52 - Process No. '0': Listed correctly
ok 53 - Process No. '0': Launch succeeded
ok 54 - Process No. '1': Listed correctly
ok 55 - Process No. '1': Launch succeeded
ok 56 - Process No. '2': Listed correctly
ok 57 - Process No. '2': Launch succeeded
ok 58 - Process Group Execution: All Processes are launched
ok 59 - Process Group Execution: Execution failed as expected
Process Group Execution End - Time Now: '1612539307.94226' s
Process Group Execution finished in '8023.38004112244' ms
Process Group ERROR CODE: '4'
ok 60 - Process Group Execution: ERROR CODE is correct
Process Group STDOUT: '2021-02-05 15:35:05 : Sub Process (27916) 'test-script:3s': finished with [0]
2021-02-05 15:35:05 : Sub Process (27918) 'test-script:5s': finished with [0]
'
Process Group STDERR: 'Sub Processes 'Count: 1': Execution timed out!
Execution Time '8 / 7'
Processes will be terminated.
Sub Processes: Processes terminating ...
'
ok 61 - Process No. '0': Listed correctly
Process (27916) 'test-script:3s' finished with [0]:
ERROR CODE: '0'
EXIT CODE: '0'
ok 62 - Execution Time was measured
Read Timeout: '2'
Execution Time: '6.020850'
STDOUT: 'Start - Time Now: '1612539299.93401' s
script 'test_script.pl' START 0
script 'test_script.pl' PAUSE '3' ...
script 'test_script.pl' END 1
End - Time Now: '1612539302.93425' s
script 'test_script.pl' done in '3000.24890899658' ms
script 'test_script.pl' EXIT '0'
'
STDERR: 'script 'test_script.pl' START 0 ERROR
script 'test_script.pl' END 1 ERROR
'
ok 63 - Process No. '1': Listed correctly
Process (27918) 'test-script:5s' finished with [0]:
ERROR CODE: '0'
EXIT CODE: '0'
ok 64 - Execution Time was measured
Read Timeout: '2'
Execution Time: '6.019086'
STDOUT: 'Start - Time Now: '1612539299.93605' s
script 'test_script.pl' START 0
script 'test_script.pl' PAUSE '5' ...
script 'test_script.pl' END 1
End - Time Now: '1612539304.93624' s
script 'test_script.pl' done in '5000.18811225891' ms
script 'test_script.pl' EXIT '0'
'
STDERR: 'script 'test_script.pl' START 0 ERROR
script 'test_script.pl' END 1 ERROR
'
ok 65 - Process No. '2': Listed correctly
Process (27919) 'test-script:13s' finished with [4]:
ERROR CODE: '4'
EXIT CODE: '-1'
ok 66 - Execution Time not measured as expected
Read Timeout: '2'
Execution Time: '-1'
STDOUT: ''
STDERR: 'script 'test_script.pl' START 0 ERROR
Sub Process (27919) 'test-script:13s': Process terminating ...
'
ok 67 - '1' Process timed out as expected
Process Group Execution Timeout - Count: '1'