You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The add method on the service you've written will execute every two seconds while the service is running. As with all entrypoints, each execution will happen in its own worker thread.
I'll close this issue. If you still have questions, the forum is a better place to ask them.
I test the code timer just run once, how should i be sure the timer run on master process?
`
from nameko.timer import timer
my_cache = 0.0
class Service:
name ="service"
@Timer(interval=2)
def add(self):
global my_cache
mycache = mycache+1
print(mycache)
`
The text was updated successfully, but these errors were encountered: