?
Solved

Background job in web site

Posted on 2013-02-07
4
Medium Priority
?
372 Views
Last Modified: 2013-02-07
Hi.

I have a web based application running under IIS7.5 on a server to which I have full access. In this web application the clients can press a button that starts a lengthly job. Now, I want this job to allways finnish - even if the client logs out and closes the browser. I have a thought that the best would be if the button could trigger and run a completely different application on the server that will finish no matter what.

My question is: Is this the way to go and if so - how do you run this application from the web site and how do you pass all the parameters in the best manner. If this is not the way to go - how do you achieve the desired functionality in the best way?

Best regards
RTSol
0
Comment
Question by:RTSol
4 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 800 total points
ID: 38863856
in my company, we solve that this way:
* the request for the "lengthy job" is stored in a "to do queue"
* a service application polls that table (every x seconds or minuts), and executes what it has to do.
* the script/app that runs does some logging into a "log" table, so users (and admins) can see what is happening, at least up to some point.
0
 
LVL 30

Assisted Solution

by:IanTh
IanTh earned 400 total points
ID: 38863863
You wont be using a session so the user will need an account so he can get an update via email for instance when his job is finished and the job is assigned to his account.
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 800 total points
ID: 38863916
The best solution will depend a lot on your technical expertise.  I would build a web service that interacts with the web site to get the work done whether or not the user was logged in.  The same web service could be queried for status information about the job.
0
 

Author Closing Comment

by:RTSol
ID: 38864242
Thanks guys. I will try out both suggestions. I will put the parameters in a data table and then go from there. Maybe the best is to have a web service and call it when the parameters are in the data table and then put back status indications.

Thanks a lot.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question