Hi,
I have a custom plugin named MyCustomTask written in a python file(say mycustomtask.py). How can I include this in the Flyte environment so that any one uses this plugin should be able to import and use it like other default plugins.
Example:
This is how we import Snowflake task ->
from flytekitplugins.snowflake import SnowflakeConfig, SnowflakeTask
.
I need to do the same thing with my custom plugin too. ->
from flytekitplugins.mycustomtask import MyCustomTask
directory. You can take a look at the other plugins’ code for reference.
Would you mind letting me know what this custom task is?
d
delightful-lion-57360
09/30/2022, 8:31 PM
Actually, We will use a plugin with our custom use case which is specific to our account.
It might not a generic one to be used by all the developers. Any recommended way to place this custom file and use within our flyte environment only?
Example: Airflow allows users creating custom Operators and it can be placed in the plugins/ folder and can be imported in the DAG files. This doesnt need changes to airflow module. I am checking if we can do the similar process here?
@tall-lock-23197