-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Feature][Task] Transfer files between tasks #12552
Conversation
64ac2f6
to
27e4d74
Compare
27e4d74
to
8f67cfb
Compare
The pressure bandwidth should be show in the documentation |
I had add related message into documentation. |
...rc/main/java/org/apache/dolphinscheduler/server/worker/runner/WorkerTaskExecuteRunnable.java
Show resolved
Hide resolved
I have marked this pr as a draft because I want to add a clean mechanism to clear data in the resource center. |
ab26da5
to
f05d007
Compare
...rc/test/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtilsTest.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Fixed
Show fixed
Hide fixed
ef7c1a9
to
a1783a2
Compare
...eduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java
Fixed
Show fixed
Hide fixed
Codecov Report
@@ Coverage Diff @@
## dev #12552 +/- ##
============================================
+ Coverage 39.05% 39.15% +0.10%
- Complexity 4186 4206 +20
============================================
Files 1043 1044 +1
Lines 39506 39673 +167
Branches 4539 4564 +25
============================================
+ Hits 15430 15535 +105
- Misses 22318 22372 +54
- Partials 1758 1766 +8
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
b27f0a1
to
55d6f3f
Compare
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
...ler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
Show resolved
Hide resolved
...eduler-api/src/main/java/org/apache/dolphinscheduler/api/controller/ResourcesController.java
Outdated
Show resolved
Hide resolved
...ler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ResourcesServiceImpl.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/apache/dolphinscheduler/server/worker/utils/TaskFilesTransferUtils.java
Outdated
Show resolved
Hide resolved
7d5b78f
to
a2fed15
Compare
add delete DATA_TRANSFER API
a2fed15
to
f146a77
Compare
@caishunfeng @Tianqi-Dotes PTAL, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Kudos, SonarCloud Quality Gate passed! |
Purpose of the pull request
FILE Parameter
Use the file parameter to pass files (or folders, hereinafter referred to as file) in the working directory of the upstream task to the downstream task in the same workflow instance. The following scenarios may be used
Usage
Configure file parameter
File parameter configuration method: click the plus sign on the right side of "Custom Parameters" on the task definition page to configure.
Output file to downstream task
Four options of custom parameters are:
KEY1
andKEY2
in the figure belowdata
anddata/test2/text.txt
in the figure belowThe configuration in the figure below indicates that the
output
task passes two file data to the downstream task, respectively:data
, and mark it asdir-data
. The downstream task can get this folder throughoutput.dir-data
data/test2/text.txt
, and mark it asfile-text
. The downstream task can get this folder throughoutput.file-text
Get the file from the upstream task
Four options of custom parameters are:
input_dir
used in the figure belowtaskName.KEY
. For example,output.dir-data
in the figure below, whereoutput
is the name of the upstream task, anddir-data
is the file identifier output by the upstream taskThe configuration in the figure below indicates that the task gets the folder identified by
dir-data
from the upstream taskoutput
and saves it asinput_dir
The configuration in the figure below indicates that the task gets the file identified by
file-text
from the upstream taskoutput
and saves it asinput.txt
close: #12479
Brief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md