Hi,
I have a script which takes ~20 minutes to fully process and it runs in the background. I want to be able to run multiple instances of this script at the same time, all initiated manually through a webpage.
I use Microsoft.XMLHTTP to send an asynchronous request, however once the first request is sent, when I try to initiate another one it won't kick in until the first has completed (it queues up).
Here is the code I am using to achieve this:
---
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "POST", " & LAUNCH_ID, true
xmlhttp.setRequestHeader "Content-Type", "application/x-xmlhttp.send
Set xmlhttp=Nothing
response.redirect "index.asp"
---
When the user is redirected to index.asp, they should be able to add new variables, fire up a new request and have the script start processing in the background again. However, if they do, the script would start processing only after the previous one has finished.
I am open to suggestions/workaround on how this can be achieved.
Thanks!
I have a script which takes ~20 minutes to fully process and it runs in the background. I want to be able to run multiple instances of this script at the same time, all initiated manually through a webpage.
I use Microsoft.XMLHTTP to send an asynchronous request, however once the first request is sent, when I try to initiate another one it won't kick in until the first has completed (it queues up).
Here is the code I am using to achieve this:
---
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "POST", " & LAUNCH_ID, true
xmlhttp.setRequestHeader "Content-Type", "application/x-xmlhttp.send
Set xmlhttp=Nothing
response.redirect "index.asp"
---
When the user is redirected to index.asp, they should be able to add new variables, fire up a new request and have the script start processing in the background again. However, if they do, the script would start processing only after the previous one has finished.
I am open to suggestions/workaround on how this can be achieved.
Thanks!