-
Notifications
You must be signed in to change notification settings - Fork 467
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
Implement the REST Endpoint to manage the job queue #29480
Comments
Just a note, and I am sure you are on it, but we will need to be careful with the |
|
None of this seems objective to me for the goal we're trying to accomplish here.
We have purposely limited the info displayed here. to only what is necessary for knowing the status. Failed Job gives away more info for debugging purposes.
Okay, the endpoint is designed to take a multipart request. for a reason: It can take files and a set of parameters in json format.
This is ambiguous. Would renaming it to type make it clearer? We have a concept and a design behind this.
True, but there is no need to reject a ticket for that. This work fulfills the requirements. file a ticket for an enhancement. |
After talking with @bryanboza, we agreed that we need an endpoint to retrieve a job in full detail using an identifier. This endpoint must include all the info already shown in other endpoints. |
@fabrizzio-dotCMS Please make sure the postman test related to this endpoint use JWT instead basic auth. |
@bryanboza, The following endpoint {{baseUrl}}/api/v1/jobs/{{jobId}}/status has been updated to include all additional details as shown on the job-list endpoints. |
So to summarize this fix:
|
Parent Issue
#29474
Task
As a developer, I need to create a REST endpoint to manage the creation, execution, monitoring, and querying of system tasks. This endpoint will serve as the main interface for users to interact with the job system, allowing them to enqueue new jobs, check job status, cancel running jobs, retry failed jobs, and monitor job progress in real-time using Server-Sent Events (SSE).real time
Proposed Objective
Core Features
Proposed Priority
Priority 3 - Average
Acceptance Criteria
1.1. The endpoint should accept job parameters and optionally a queue name.
1.2. The response should include a unique job identifier.
2.1. The status should include the job state, progress percentage, and the node executing the job.
3.1. The endpoint should update the job status to "canceled."
4.1. The endpoint should reset the job status to "pending" and re-enqueue it.
6.1. The endpoint should stream updates on job status changes, progress, and completion to the client.
Let the following code serve as a high-level example:
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
No response
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: