Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for user-defined functions and call field in YAML format #429

Closed
yohamta opened this issue Apr 11, 2023 · 2 comments
Closed
Labels
good first issue Good for newcomers

Comments

@yohamta
Copy link
Collaborator

yohamta commented Apr 11, 2023

Add support for defining user-defined functions and a call field in the YAML format to enable more modular and reusable code within the DAGs.

Introduce a new top-level functions field for defining user-defined functions, and a new call field within the steps section to call those functions.

Example of defining a function and calling a function:

functions:
  - name: my_function
    params: param1 param2
    command: python main.py $param1 $param2

steps:
  - name: step 1
    call:
      function: my_function
      args:
        param1: 1
        param2: 2
@garunitule
Copy link
Contributor

@yohamta
May I work on it?

@yohamta
Copy link
Collaborator Author

yohamta commented Apr 23, 2023

Hi @garunitule 👋
That would be a huge help. Thank you so much!

If there's anything you're not sure about, feel free to ask any questions.
Here's the link to our Discord Community.
https://discord.gg/gpahPUjGRk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants