You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "mengfh (via GitHub)" <gi...@apache.org> on 2026/01/09 23:02:10 UTC

[I] [Feature][Module Name] 自定义jobId [seatunnel]

mengfh opened a new issue, #10316:
URL: https://github.com/apache/seatunnel/issues/10316

   ### Search before asking
   
   - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   - job 提交,每次生成的jobid不一样
   - 而checkpoint 持久化 的数据又是以jobid 为目录进行存储。
   - 出现异常时[如服务掉了或是任务需要更换某些参数时] , 执行相同的任务时,因会生成新的jobid 无法使用之前持久化的checkpoint相关数据。即无法完成 服务seatunnel集群重启后, 增量任务继传问题。
   
   ### Usage Scenario
   
   增交任务时,可以自定义jobid,或是根据jobname 生成唯一的jobid 【只要jobname相同,jobid 就相同 如jobname的md5值】
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: commits-unsubscribe@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Implement custom jobId [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on issue #10316:
URL: https://github.com/apache/seatunnel/issues/10316#issuecomment-3733814386

   Hi,
   
   This feature is already supported. You can use the `--set-job-id` parameter to specify a custom Job ID when submitting a job.
   
   For example:
   ```bash
   sh bin/seatunnel.sh -c config/v2.batch.config.template --set-job-id 123456
   ```
   
   Please note that `jobId` currently only supports **Long** type (integers). If you want to generate a unique ID based on the Job Name (e.g., using a hash), you need to process it in your script to ensure the result is a valid number.
   
   When the job fails and you need to restore it from the previous state (Checkpoints), you can use the `-r` (or `--restore`) parameter with that known Job ID:
   
   ```bash
   sh bin/seatunnel.sh -c config/v2.batch.config.template -r 123456
   ```
   
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Feature] Implement custom jobId [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo closed issue #10316: [Feature] Implement custom jobId
URL: https://github.com/apache/seatunnel/issues/10316


-- 
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: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org