Actual behavior of __context__
for execution modules?
#67004
-
Per the docs "developing modules" section about
And indeed, when I look at some of the builtin modules, e.g., they certainly seem to assume that it works that way (i.e. that However, when I actually try a simple example of (re-)using
And def counter():
if "mycounter" in __context__:
count = __context__["mycounter"]
else:
count = 0
count += 1
__context__["mycounter"] = count
return count Additionally, I turned on debug logging, and tried repeatedly running Do I have some minion config settings wrong? (I tried with Am I misunderstanding the documentation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think it might persist between multiple module calls that happen within a single run. |
Beta Was this translation helpful? Give feedback.
I think it might persist between multiple module calls that happen within a single run.