Stopping an asynchronous task

  • Thread starter Thread starter Andrei
  • Start date Start date
A

Andrei

Hi Group,

Our asp.net application starts some tasks (processing data and generating
reports) asynchronously.
These tasks could take 10-20 min to complete.
It happened a few times that once the clients started the task, they
realised they picked the wrong parameters and they wanted to cancel the
task.

What solutions do we have to stop/cancel a running asynchronous task ?

Thank you,

Andrei.
 
depends on how you are running the async tasks. if local thread, creats a
thread pool, and associate a tkoen to starting the task. the user can use
the token to identify the thread to kill.

-- bruce (sqlwork.com)
 
Back
Top