search for: pymotw

Displaying 2 results from an estimated 2 matches for "pymotw".

Did you mean: pomoti
2017 Jun 30
2
Simplest way of executing a non-blocking (async) python AGI script?
...4/why-are-the-methods-sys-exit-exit-raise-systemexit-not-working https://stackoverflow.com/questions/43280947/os-fork-share-local-variable-with-parent https://stackoverflow.com/questions/24052217/may-someone-explain-the-following-os-fork-example-to-me http://www.python-course.eu/forking.php https://pymotw.com/3/subprocess/ http://code.activestate.com/recipes/186101-really-closing-stdin-stdout-stderr/ This is the most likely looking code based on the examples. I would really, really appreciate a couple of pointers as to where I might be going wrong: #! /usr/bin/env python3 # -*- coding: utf-8 -*-...
2017 Jun 30
3
Simplest way of executing a non-blocking (async) python AGI script?
I use a python AGI which pulls some info from a web service, which should take half a second. Sometimes, it takes 5-10 seconds which blocks the dialplan execution, but the dialplan should continue immediately as it's not dependent on the AGI/web service data. What's the simplest, easiest quickest least-code way of firing off an AGI with some variable, and then returning to the dialplan?