Is it possible to implement parallel execution with queue and functions with arguments?
Let's say this is my code
have a function foo (a) that I need to call periodically.
def foo(ar):# do something with arq = queue.Queue()
How can I write this next call such that also the argument is passed?
schedule.every(10).seconds.do(q.put, job).tag("tag")
I'll handle the queue as reported in the documentation
Is it possible to implement parallel execution with queue and functions with arguments?
Let's say this is my code have a function foo (a) that I need to call periodically.
def foo(ar):
# do something with ar
q = queue.Queue()
How can I write this next call such that also the argument is passed?schedule.every(10).seconds.do(q.put, job).tag("tag")
I'll handle the queue as reported in the documentation