apache / apache/dolphinscheduler

[Feature][task] Task python support better virtualenv

Open
#7,069 4 comments 0 reactions 0 assignees View on GitHub
feature help wanted
Dominant language
Java
Stars
14.5k
Forks
5.1k
Avg merge
1d 21h
Merged PRs (30d)
28

Description

### Search before asking

- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar feature requirement.

### Description

I submit PR https://github.com/apache/dolphinscheduler-website/pull/555 to ds website about how to use python virtualenv to run python script in virtualenv. But maybe we should support a better way to run python script with virtualenv instead of create multiply environment.

Cause environment is for all task attribute, but virtualenv only for python interpreter. for now is more look like

```shell
|-- parent python interpreter
|-- parent python interpreter virtunlenv1
|-- parent python interpreter virtunlenv2
```

All python virtualenv is visible to all type task. But I think a better way is virtualenv only for python task

```shell
|-- parent python interpreter
|-- parent python interpreter virtunlenv1
|-- parent python interpreter virtunlenv2
```

which mean we would have less python environment name, and each python environment have multiply virtualenv selection.

### Use case

_No response_

### Related issues

_No response_

### Are you willing to submit a PR?

- [ ] Yes I am willing to submit a PR!

### Code of Conduct

- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the current task-environment handling in the Apache DolphinScheduler codebase and the referenced dolphinscheduler-website PR #555. No implementation files, tests, or concrete entry points are named in the issue; done would require an agreed design for Python-task-only virtualenv selection and corresponding validation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.