apache / apache/dolphinscheduler-sdk-python

[feat] Overwrite workflow parameter during workflow trigger in CLI

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
Python
Stars
71
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Sometime user may want to overwrite workflow parameter during trigger workflow with CLI,

such as:

```py
with ProcessDefinition(
name="tutorial",
schedule="0 0 0 * * ? *",
start_time="2021-01-01",
tenant="tenant_exists",
) as pd:
```

and in bash

```bash
python tutorial.py --tenant=new-tenant
```

to replace the value from `tenant="tenant_exists"` to `tenant="new-tenant"` in file `tutorial.py`

Contributor guide

Open the contributing guide

Research direction

Start by tracing the CLI trigger path used with tutorial.py and the ProcessDefinition tenant parameter. Confirm how command-line values are parsed and passed into workflow triggering; done means `python tutorial.py --tenant=new-tenant` overrides the defined tenant value without changing tutorial.py.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.