|
Hi, I am developing task manager. The TaskManager acts as service at backend to execute task in async mode (multithreading - one task per thread). The task could be long running process that takes few mins to hours to complete. In order to let client to request taskManager to execute any task, I use WCF (tcp) as communication proxy and hosted by Windows Service. Whenever requested received will be push to queue. A TaskManager timer will check for queue intervally and invoke the actual task. From Web UI, I have a javascript timer to callback to WCF to get task status intervally and shown it in progress bar. I faced problem that:- 1. Call to WCF will timeout after a few successful calls. However, the task is still running as status in db is updated as my task will update status back to db well from time to time. 2. When the task is running, task status callback is running intervally. If I click any link to navigate to other page, it will keep staying at the same screen till WCF timeout error occurred. Beside, I have set my WCF service to have single instance, multiple concurrency mode. Any ideas? Please advice. Thank you |