-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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] [rest-api] get finished jobs info #5949
Conversation
Awaitility.await() | ||
.atMost(2, TimeUnit.MINUTES) | ||
.untilAsserted( | ||
() -> | ||
Assertions.assertEquals( | ||
JobStatus.RUNNING, | ||
seaTunnelServer | ||
.getCoordinatorService() | ||
.getJobStatus(Long.parseLong(jobId)))); |
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.
Why removed this?
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.
Why removed this?
I tested it on my machine and found that it gets stuck here because the task has already been completed.
The status of the job will be tested below, so I think this place can be removed.
...2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/RestApiIT.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.
I find we already have api to query running-jobs
, it might be better to provide a API to query jobs by status?
...tunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/rest/RestConstant.java
Outdated
Show resolved
Hide resolved
Yes, I agree with you. We need a API to get the jobs list and can use param to filter the result of the specified state. |
Please fix ci. Thanks |
--------- Co-authored-by: gdliu3 <[email protected]>
@liugddx The url in the |
Thanks for reminding. |
--------- Co-authored-by: gdliu3 <[email protected]>
Purpose of this pull request
close #5772
Does this PR introduce any user-facing change?
add a rest api for get finished jobs info.
How was this patch tested?
ut
Check list
New License Guide
release-note
.