Accessing built-in runner parameters in Python Action Runners #5372
Unanswered
TimothyDJones
asked this question in
Workflows
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I feel like this is a question that is (or should be!) obvious, but I've struggled for quite some time to tease out the answer on my own and by searching the old forums and elsewhere.
I want to use the built-in runner parameters, such as
env
,timeout
, andlog_level
, on a Python Action Runner (python-script
). The referenced documentation indicates that these parameters are available in Action Runner instance, which presumably is an instance of thePythonRunner
class (please confirm). However, I've been unable to determine how to access this class from within the class hierarchy via the class instance created from a class inherited from "base"Action
class. Can you provide any guidance on this?A very brittle/kludgy workaround that I've found for
log_level
is the utility method below that takes an instance of theAction
class as input and uses introspection to find the internal_log_level
parameter. This seems like a rather convoluted solution and subject to breaking when class hierarchy/structure changes.Thanks for any help/guidance!
Tim Jones
Beta Was this translation helpful? Give feedback.
All reactions