Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

feature: add a flag to pass timeout to dfget from dfdaemon #686

Closed
wants to merge 1 commit into from

Conversation

yeya24
Copy link
Collaborator

@yeya24 yeya24 commented Jul 18, 2019

Signed-off-by: yeya24 [email protected]

Ⅰ. Describe what this PR did

Add a flag to pass global timeout to dfget from dfdaemon.
This is simply a global timeout. Maybe later we can add a mechanism about setting different timeout or other dfget parameters for different tasks.

Ⅱ. Does this pull request fix one issue?

NONE

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Maybe don't need to.

Ⅳ. Describe how to verify it

use docker pull xxx

Ⅴ. Special notes for reviews

@yeya24 yeya24 force-pushed the feature/add-timeout-flag branch from b671cf3 to 014fc64 Compare July 18, 2019 08:27
@yeya24 yeya24 changed the title add a flag to pass timeout to dfget from dfdaemon feature: add a flag to pass timeout to dfget from dfdaemon Jul 18, 2019
@codecov-io
Copy link

codecov-io commented Jul 18, 2019

Codecov Report

Merging #686 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #686      +/-   ##
==========================================
+ Coverage   46.86%   46.86%   +<.01%     
==========================================
  Files         108      108              
  Lines        6226     6228       +2     
==========================================
+ Hits         2918     2919       +1     
  Misses       3075     3075              
- Partials      233      234       +1
Impacted Files Coverage Δ
dfdaemon/config/config.go 100% <100%> (ø) ⬆️
cmd/dfdaemon/app/root.go 65.43% <100%> (+0.43%) ⬆️
cmd/dfget/app/root.go 63.19% <100%> (ø) ⬆️
supernode/daemon/mgr/scheduler/manager.go 24.06% <0%> (-0.76%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7689d60...014fc64. Read the comment docs.

@starnop
Copy link
Contributor

starnop commented Jul 18, 2019

In the PR #670, @lowzj and I discussed the problem that we should provide a more flexible way to configure the dfget rather than pass the flags of dfdaemon to dfget. FYI dragonflyoss/dragonfly#670 (review)

And could you please help to open an issue about this problem?And we can discuss it in that issue. THX.

@yeya24
Copy link
Collaborator Author

yeya24 commented Jul 25, 2019

Since we have discussed further in dragonflyoss/dragonfly#687, I will close this now.

@yeya24 yeya24 closed this Jul 25, 2019
@yeya24 yeya24 deleted the feature/add-timeout-flag branch July 25, 2019 08:34
sungjunyoung pushed a commit to sungjunyoung/Dragonfly that referenced this pull request May 8, 2022
* feat: add grpc metric and refactor grpc server

Signed-off-by: Gaius <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants