Guide 77- Executing tasks in queues in the background |
1/26/2024 2:12:30 PM |
PHPRunner Tips and Tricks | |
fhumanes author
We are used to Web Forms applications (like the ones we make in PHPRunner) for everything to be executed at the same time it is requested and this does:
Objetive Have a system of different task execution queues in the “background” that allows us to regulate the load of the systems and ensure that heavy tasks are executed in order and sequenced, so that they do not saturate the system. DEMO : https://fhumanes.com/scheduler_queue Users: admin/admin and user1/user1 If you are interested in this article, continue reading it at this link. |
|
fhumanes author 1/26/2024 | |
Technical Solution What I have done is give the application the possibility that long and heavy tasks can be executed in the background so that it does not get “hooked” on the user. In this way, reporting processes, updates of many records, communications with other systems or simply sending emails or similar processes are executed without being “hooked” to the user. When these tasks finish, through the Notification system that PHPRunner has, it notifies the user of their completion and provides them with information about the execution and even the files that may have been produced in these processes. (1).- This is the block of information that is updated in the execution request. Tasks go through 4 states. If you are interested in this article, continue reading it at this link. |