stocky-fountain-57774
01/23/2024, 11:02 AM__init__.py
file:
from metaflow.decorators import step, _import_plugin_decorators
from metaflow.plugins import STEP_DECORATORS
from .custom_step_decorator import TestDecorator
STEP_DECORATORS.append(TestDecorator)
_import_plugin_decorators(globals())
This allows us to import the decorator into the workflow code itself and apply it to the steps. However, we find this approach complex and are not sure how it fits into deployment on AWS with Step Functions. What would be the best way to proceed?
On a related note, the package we use for logging is on GCP Artifact Registry. Is there a straightforward way to import it with GCP credentials, perhaps via the PyPI tag? How can we import this package for the entire workflow without having to do it for each step?
Thank you for your response and have a great day!