Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multithreaded Service - python win32

Status
Not open for further replies.

Reticulatus

Technical User
Aug 16, 2006
1
US
I am new to this group, but I'm hoping someone could offer some advice, with regard to a complicated issue I have been facing.

I have created a (multithreaded) Python application that performs asynchronous queries. Unfortunately, I'm having a very difficult time setting it up as an independently-running service, because of the multiple threads.

It should run as follows:

1) A remote server starts the service
2) while the service is running, it performs its asynchronous lookups--something like:

while 1:
ASYNCH_QUERY()
time.sleep(30)
else:
sys.exit()

I have taken a look at the pipeTestServiceClient.py and pipeTestService.py examples from win32all build 209, but I couldn't figure out how to adapt these to my own code, since nothing needs to be echoed back to the "invoking" server. Does anyone have any ideas?


Thanking you in advance,

Reticulatus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top