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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top