You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/10/21 07:53:08 UTC

[GitHub] [shardingsphere-elasticjob] TeslaCN edited a comment on issue #1597: Adapt spring boot starter with job error handler

TeslaCN edited a comment on issue #1597:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1597#issuecomment-713380014


   Maybe we can simply configurations if only one error handler can be configured.
   
   ```
   simpleJob.elasticJobClass=org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
   simpleJob.cron=0/5 * * * * ?
   simpleJob.shardingTotalCount=3
   simpleJob.shardingItemParameters=`0=Beijing,1=Shanghai,2=Guangzhou`
   simpleJob.jobErrorHandlerType=DINGTALK
   
   simpleJob.extraConfigurations.errorHandler.webhook=my-webhook
   simpleJob.extraConfigurations.errorHandler.keyword=my-keyword
   simpleJob.extraConfigurations.errorHandler.secret=my-secret
   
   # simpleJob.extraConfigurations.errorHandler.host=smtp.myhost
   # simpleJob.extraConfigurations.errorHandler.port=465
   # simpleJob.extraConfigurations.errorHandler.username=my-username
   # simpleJob.extraConfigurations.errorHandler.password=my-password
   # simpleJob.extraConfigurations.errorHandler.from=my@email.com
   # simpleJob.extraConfigurations.errorHandler.to=target@email.com
   # simpleJob.extraConfigurations.errorHandler.debug=true
   ```


----------------------------------------------------------------
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:
users@infra.apache.org