Solved

Background job in web site

Posted on 2013-02-07
4
368 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 200 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 100 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 200 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

This article explains how to install and use the NTBackup utility that comes with Windows Server.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

687 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