Code: Select all
import multiprocessing
def method_name(self, arg=None):
indigo.server.log(str(arg))
indigo.server.log(multiprocessing.current_process().name)
p1 = multiprocessing.Process(name='Foo', target=self.method_name(), args=(arg_to_pass,))
p1.start()
p1.join()
Can someone smarter than me please provide an example of how to get a separate process to run within a plugin? I clearly have more to figure out.