Level1Accelerator commented on PR #9842:
URL: https://github.com/apache/seatunnel/pull/9842#issuecomment-3551992852

   > > Many states of JOB_STATUS in EventType will not be monitored in the 
handle interface that implements EventHandler. Is this a bug?
   > 
   > If you could add a more detailed explanation or an example of the current 
behavior in the issue (e.g., code snippet, logs, screenshots), it would help us 
understand the problem more clearly and check whether it’s a bug.
   
   **config**
   seatunnel.yaml
   seatunnel:
     engine:
       event-report-http:
         url: "http://xxxx/event/report";
         headers:
           Content-Type: application/json
   
   **shell**
   ./bin/seatunnel.sh --config config/v2.batch.config.template
   ./bin/seatunnel.sh --config config/v2.streaming.config.template
   
   
   **Actual return**
   [{
        "createdTime": 1763547187882,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_ENUMERATOR_OPEN"
   }, {
        "createdTime": 1763547187991,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_READER_OPEN"
   }, {
        "createdTime": 1763547188008,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_READER_OPEN"
   }, {
        "createdTime": 1763547189284,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_ENUMERATOR_CLOSE"
   }, {
        "createdTime": 1763547189290,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_WRITER_CLOSE"
   }, {
        "createdTime": 1763547189291,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_WRITER_CLOSE"
   }, {
        "createdTime": 1763547190093,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_READER_CLOSE"
   }, {
        "createdTime": 1763547190111,
        "jobId": "1043468962861416450",
        "eventType": "LIFECYCLE_READER_CLOSE"
   }, {
        "jobId": "1043468962861416450",
        "jobName": "SeaTunnel_Job",
        "jobStatus": "FINISHED",
        "createdTime": 1763547190404,
        "eventType": "JOB_STATUS"
   }]
   
   
   **Desired effect**
   <img width="557" height="401" alt="image" 
src="https://github.com/user-attachments/assets/9de1078c-0f00-4c76-b8dc-bea529d439c0";
 />
   All the above states can be monitored, and they are the actual states of the 
current task. Moreover, the details reported by JobEventHttpReportHandler need 
to be printed in the master log.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to