Conversation
1703dfb to
221f945
Compare
|
@aaronlehmann please take a look. |
api/types.proto
Outdated
| REJECTED = 768 [(gogoproto.enumvalue_customname)="TaskStateRejected"]; // task could not be executed here. | ||
| ORPHANED = 832 [(gogoproto.enumvalue_customname)="TaskStateOrphaned"]; // The node on which this task is scheduled is Down for too long | ||
| // The purpose of this state is to free up resources associated with service tasks on unresponsive nodes | ||
| // , without having to delete those tasks. This state is directly assigned as current task state by the |
There was a problem hiding this comment.
Weird comma at the beginning of the line here.
api/types.proto
Outdated
| ORPHANED = 832 [(gogoproto.enumvalue_customname)="TaskStateOrphaned"]; // The node on which this task is scheduled is Down for too long | ||
| // The purpose of this state is to free up resources associated with service tasks on unresponsive nodes | ||
| // , without having to delete those tasks. This state is directly assigned as current task state by the | ||
| // orchestrator (as opposed to setting it as the desired state which is not very intuitive). |
There was a problem hiding this comment.
I don't understand the last part.
api/types.proto
Outdated
| FAILED = 704 [(gogoproto.enumvalue_customname)="TaskStateFailed"]; // task execution failed with error | ||
| REJECTED = 768 [(gogoproto.enumvalue_customname)="TaskStateRejected"]; // task could not be executed here. | ||
| ORPHANED = 832 [(gogoproto.enumvalue_customname)="TaskStateOrphaned"]; // The node on which this task is scheduled is Down for too long | ||
| // The purpose of this state is to free up resources associated with service tasks on unresponsive nodes |
There was a problem hiding this comment.
Extra space after "associated"
| } | ||
| } | ||
|
|
||
| // Tick performs the actual cleanup. |
221f945 to
64e6304
Compare
Codecov Report
@@ Coverage Diff @@
## master #2421 +/- ##
==========================================
+ Coverage 60.69% 60.81% +0.11%
==========================================
Files 128 128
Lines 26401 26401
==========================================
+ Hits 16025 16055 +30
+ Misses 8974 8942 -32
- Partials 1402 1404 +2 |
Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>
64e6304 to
e08257f
Compare
| FAILED = 704 [(gogoproto.enumvalue_customname)="TaskStateFailed"]; // task execution failed with error | ||
| REJECTED = 768 [(gogoproto.enumvalue_customname)="TaskStateRejected"]; // task could not be executed here. | ||
| ORPHANED = 832 [(gogoproto.enumvalue_customname)="TaskStateOrphaned"]; // The node on which this task is scheduled is Down for too long | ||
| // The main purpose of this state is to free up resources associated with service tasks on |
There was a problem hiding this comment.
Use Go style for these comments: start with the identifier.
// TaskStateOrphaned ...
| stopChan chan struct{} | ||
| doneChan chan struct{} | ||
|
|
||
| // List of slot tubles to be inspected for task history cleanup. |
There was a problem hiding this comment.
Again, make sure to follow godoc style for these: start with the identifier.
|
@anshulpundir It is considered poor form to self merge. I understand there are situations where it is okay, but this is an open source project and review standards must be met. |
There was a problem hiding this comment.
It is considered poor form to self merge. I understand there are situations where it is okay, but this is an open source project and review standards must be met.
I was not aware of that. Thanks for letting me know!
edit: Can you please elaborate on why this is considered poor form ? I'd also suggest adding that to https://github.com/docker/swarmkit/blob/master/CONTRIBUTING.md @stevvooe
Upgrade swarmkit dependency. Changes: moby/swarmkit@ce5f7b8a (HEAD -> master, origin/master, origin/HEAD) Merge pull request moby/swarmkit#2411 from crunchywelch/2401-arm64_support moby/swarmkit@b0856099 Merge pull request moby/swarmkit#2423 from thaJeztah/new-misty-handle moby/swarmkit@2bd294fc Update Misty's GitHub handle moby/swarmkit@0769c605 Comments for orphaned state/task reaper. (moby/swarmkit#2421) moby/swarmkit@de950a7e Generic resource cli (moby/swarmkit#2347) moby/swarmkit@312be598 Provide custom gRPC dialer to override default proxy dialer (moby/swarmkit#2419) moby/swarmkit@4f12bf79 Merge pull request moby/swarmkit#2415 from cheyang/master moby/swarmkit@8f9f7dc1 add pid limits moby/swarmkit@da5ee2a6 Merge pull request moby/swarmkit#2409 from dperny/workaround-attachments moby/swarmkit@0c7b2fc2 Delete node attachments when node is removed moby/swarmkit@9d702763 normalize "aarch64" architectures to "arm64" moby/swarmkit@28f91d8...ce5f7b8 Signed-off-by: Marcus Martins <marcus@docker.com>
Signed-off-by: Anshul Pundir <anshul.pundir@docker.com>
Based on recent conversations about 'orphaned' task state and the task reaper. Just wanted to capture these in the code for better readability.
Signed-off-by: Anshul Pundir anshul.pundir@docker.com