Hi
I would recommend to schedule a background job for this activity or you can create a archiving program and run the background job for the same program periodically which will help you to the required activity.
Since you are doing this activity in the foreground which cannot be done since the workprocess runtime is just 1800 s as per your system settings.
Hope this helps.
Regards
Pradeep