Is there a way to check from within a `task` if it...
# ask-the-community
a
Is there a way to check from within a
task
if it is running inside a python function say during tests or from within a jupyter notebook? I want to apply
with_overrides
to some tasks but only when they are not running locally -
with_overrides
returns an error when applied to task inside a test or calling the task directly as a function in a jupyter notebook
y
can you elaborate a bit please? example code will help if you can copy/paste in something and explain your pipeline a bit