The Artima Developer Community
Sponsored Link

Python Answers Forum
Multithreaded Service

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Nethery

Posts: 1
Nickname: molurus
Registered: Aug, 2006

Multithreaded Service Posted: Aug 16, 2006 6:47 AM
Reply to this message Reply
Advertisement
I am new to this group, but I'm hoping someone could offer some advice, with regard to a complicated issue I have been struggling with.

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.

It should run as follows:

1) A remote server starts and stops 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 suggestions?


Thanking you in advance,

Molurus

Topic: export a python script to a spreadsheet Previous Topic   Next Topic Topic: problem in calling web service

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use