[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: mod_perl2 best practices interacting with non-apache apps
From:       Jonathan Vanasco <jvanasco () 2xlp ! com>
Date:       2007-06-21 15:28:46
Message-ID: 167761AC-DAAD-4C58-A148-7F36F3E9B936 () 2xlp ! com
[Download RAW message or body]


Personally , I do this:

	MP inserts a job request into the db cluster, redirects to a  
'waiting page'.  status is 'requested'
	a python daemon queries the db cluster every 5 seconds, pulling jobs  
to run through.  status is 'processing'
	when the python daemon is done, it updates the status to  
'processed' , and leaves either a sucessess or failure flag
	'waiting page' reloads every 6-10 seconds. if it sees 'processed' in  
the db, it shows sucesses.
	btw, the job insert checks for 'similar' requests and doesn't allow  
them.



// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|   CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|     Founder/CTO/CVO
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic