johnny2002 commented on pull request #1721: URL: https://github.com/apache/shardingsphere-elasticjob/pull/1721#issuecomment-727544478
> > > > > The proposal of this pr still need to be discussed, I post my comment in the issue, we can talk about it there. > > > > > > > > > > > > if we don't make this changes, then there is no way to fullfill our requirement. our requirement is that we want to assign specific partition to specific job instance. > > > > we need to customize the JobInstance class, while noway found. > > > > > > > > > Sorry to take up your time. I realized that the jobInstanceId is an internal implementation of ElasticJob and it is not recommended to expose to user. Could you consider defining your own instanceId in somewhere? > > > > > > but I need to know the JobInstance ID in sharing strategy implementation. I cannot find out a way, can you? > > May I know some details about your implementation of JobShardingStrategy? Or have you tried implementing your own JobItemExecutor? my sharding strategy is that partition 1 assign to JobInstance1, partition 2 assign to JobInstance 2, and so on. I will show you the sample code later ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
