mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 04:08:27 +08:00
Correct task name parallel processing (#5269)
When serializing objects in parallel threads, it can happen that there are not sufficient system resources available (free dialog processes). In this case, abapGit can run into error "RFC task <task name> already open". This is caused by reusing the same task name in subsequent tries to serialize an object. The correction appends a sequential number to the previous task name so each try will result in a unique task name. Closes #5224. PS: This does not fix any resource issues but should prevent the error. It will lead to wait situations and longer processing, however.
This commit is contained in:
parent
d7db1e3079
commit
1a31eb3f2f
|
@ -451,14 +451,16 @@ CLASS zcl_abapgit_serialize IMPLEMENTATION.
|
|||
METHOD run_parallel.
|
||||
|
||||
DATA: lv_msg TYPE c LENGTH 100,
|
||||
lv_task TYPE c LENGTH 32,
|
||||
lv_free LIKE mv_free.
|
||||
|
||||
|
||||
ASSERT mv_free > 0.
|
||||
|
||||
DO.
|
||||
lv_task = |{ iv_task }-{ sy-index }|.
|
||||
CALL FUNCTION 'Z_ABAPGIT_SERIALIZE_PARALLEL'
|
||||
STARTING NEW TASK iv_task
|
||||
STARTING NEW TASK lv_task
|
||||
DESTINATION IN GROUP mv_group
|
||||
CALLING on_end_of_task ON END OF TASK
|
||||
EXPORTING
|
||||
|
|
Loading…
Reference in New Issue
Block a user