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

show our rule/example in docs and cli base on yaml file #21

Open
zhongjiajie opened this issue Dec 11, 2022 · 0 comments · May be fixed by #28
Open

show our rule/example in docs and cli base on yaml file #21

zhongjiajie opened this issue Dec 11, 2022 · 0 comments · May be fixed by #28

Comments

@zhongjiajie
Copy link
Contributor

zhongjiajie commented Dec 11, 2022

currently, we have rule with

name: DummyOperator
description: The configuration for converting Airflow DummyOperator to DolphinScheduler Shell task.

migration:
  module:
    src: airflow.operators.dummy_operator.DummyOperator
    dest: pydolphinschsduler.tasks.shell.Shell
  parameter:
    - src: task_id
      dest: name
    - src: bash_command
      dest: command
      default: echo 'Airflow DummyOperator'

maybe we should add new tag example, for the migrate which include src and dest,

name: DummyOperator
description: The configuration for converting Airflow DummyOperator to DolphinScheduler Shell task.

migration:
  ...

example:
  - src: syntax_before
  - dest: syntax_after

and we even can use this example in our tests

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

Successfully merging a pull request may close this issue.

1 participant