-
Notifications
You must be signed in to change notification settings - Fork 564
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
Use new batch status api /status-job
#4930
Conversation
Needs: minio/minio#19679 |
7ccec95
to
9f595a0
Compare
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.
@shtripat I think we should keep client.Metrics() batch because it is much less expensive than client.BatchJobStatus, also client.Metrics() provides realtime information and it is better to keep it.
However client.BatchJobStatus() is useful when the job finishes, where client.Metrics() can be cleared (because it is in-memory server side data).
So overall, I think it is enough to add client.BatchJobStatus() only when the job is finished (nosuchJob in line 66:84)
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
@vadmeste do you mean a change as below
|
7bca488
to
601bcd1
Compare
/status-job
/status-job
Its not working as expected and would need more work. |
Signed-off-by: Shubhendu Ram Tripathi <[email protected]>
601bcd1
to
3d5aae3
Compare
/status-job
/status-job
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
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers
under the terms of the Apache 2 license.
By creating this pull request I represent that I have the right to license the
contributions to the project maintainers under the Apache 2 license.
Description
Motivation and Context
How to test this PR?
run a batch replication and then
mc batch status ALIAS JOB-ID
andmc batch status ALIAS JOB-ID --json
For a in progress job it would output as
and

For a completed job the outputs would looks like
and
Types of changes
Checklist:
commit-id
orPR #
here)