Skip to content
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

Merged
merged 9 commits into from
Dec 14, 2023
Merged

Conversation

liugddx
Copy link
Member

@liugddx liugddx commented Dec 2, 2023

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

Comment on lines 146 to 154
Awaitility.await()
.atMost(2, TimeUnit.MINUTES)
.untilAsserted(
() ->
Assertions.assertEquals(
JobStatus.RUNNING,
seaTunnelServer
.getCoordinatorService()
.getJobStatus(Long.parseLong(jobId))));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why removed this?

Copy link
Member Author

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.

@liugddx liugddx added this to the 2.3.4 milestone Dec 6, 2023
Hisoka-X
Hisoka-X previously approved these changes Dec 7, 2023
Copy link
Member

@ruanwenjun ruanwenjun left a 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?

@EricJoy2048
Copy link
Member

I find we already have api to query running-jobs, it might be better to provide a API to query jobs by status?

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.

gdliu3 added 3 commits December 13, 2023 13:34
# Conflicts:
#	seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/RestApiIT.java
@Hisoka-X
Copy link
Member

Please fix ci. Thanks

gdliu3 added 2 commits December 13, 2023 18:55
@Hisoka-X Hisoka-X merged commit 1aff753 into apache:dev Dec 14, 2023
6 checks passed
alextinng pushed a commit to alextinng/seatunnel that referenced this pull request Dec 19, 2023
@sheng-jie
Copy link

sheng-jie commented Dec 19, 2023

@liugddx The url in the rest-api.md is not correct, it should be /hazelcast/rest/maps/finished-jobs/:state.

@liugddx
Copy link
Member Author

liugddx commented Dec 19, 2023

state

Thanks for reminding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] [rest-api] get finished jobs info.
5 participants