Starting a task on background when requested from user and stop

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I'm working a plugin which is working on thousands of products and taking too much time.
I have 2 buttons on my interface and they are "start" and "stop" buttons.
-Start button is executing the schedule task same as the schedule tasks menu.
-Stop button is disposing my task.

As the title say; I have to do this on background when user clicked start instead of waiting the response of get request.
Also how can I dispose my task?

TaskManager is not effective as I expected :(
6 years ago
Your task should look for a value in the DB to determine if it should continue or not.  Then just set the flag to true from your UI screen.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.