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 2022/01/11 03:59:47 UTC

[GitHub] [shardingsphere-elasticjob] yun-0001 opened a new issue #2037: 一个定时任务可以对应多个触发器吗

yun-0001 opened a new issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037


   每个用户都有自己的定时策略(cron),这些定时器都对应一个业务接口可以吗?定时任务根据每个用户的id去执行对应的逻辑


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 closed issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 closed issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009638422


   > Hi @yun-0001 Please translate your issue into English. I'm not sure what is the meaning of the `trigger`, so I assume that the `trigger` means `JobBootstrap`. You may create the `JobBootstarp` dynamically, but you may need to pay attention to the consequence of restarting your process.
   
   <img width="681" alt="1641882439(1)" src="https://user-images.githubusercontent.com/72588149/148892456-647c3242-ab24-4562-a55d-90fd1d662f0e.png">
   As shown in the figure: Dynamically add scheduled tasks, only one scheduled task will be added with the same jobName. I hope there are multiple timers that only call the same jobName interface 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009645730


   Did you mean a job has multiple cron?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 edited a comment on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 edited a comment on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009652208


   > Not supported yet, but I think it is possible.
   
   Well, how to dynamically add tasks? Dynamic jobs cannot be dynamically generated. 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009652208


   > Not supported yet, but I think it is possible.
   
   Well, how to dynamically add tasks? A job that can be dynamically generated cannot be dynamically generated. 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 removed a comment on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 removed a comment on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009673911


   > Just tested it, still doesn't work. If the same job can only add one task. I'm broken
   > ![1B085086](https://user-images.githubusercontent.com/72588149/148900663-37ec009d-e3e3-4fd4-98ec-61c77da842f7.png)
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009652875


   > > Not supported yet, but I think it is possible.
   > 
   > Well, how to dynamically add tasks? A job that can be dynamically generated cannot be dynamically generated.
   
   I have an idea about adding jobs dynamically. https://github.com/TeslaCN/flexijob


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009633851


   Hi @yun-0001 Please translate your issue into English.
   I'm not sure what is the meaning of the `trigger`, so I assume that the `trigger` means `JobBootstrap`.
   You may create the `JobBootstarp` dynamically, but you may need to pay attention to the consequence of restarting your process.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009647827


   Not supported yet, but I think it is possible.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009646167


   Yes, is it possible?
   
   > Did you mean a job has multiple cron?
   
   Yes, is it possible?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] TeslaCN commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009589784


   Hi @yun-0001 Please translate your issue into English.
   An instance ElasticJob may be reused in different `JobBootstrap`, which is up to your business logic.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009652122


   > multiple
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009673483


   > https://github.com/TeslaCN/flexijob
   
   Just tested it, still doesn't work. If the same job can only add one task. I'm broken 
   ![1B085086](https://user-images.githubusercontent.com/72588149/148900663-37ec009d-e3e3-4fd4-98ec-61c77da842f7.png)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009673911


   > Just tested it, still doesn't work. If the same job can only add one task. I'm broken
   > ![1B085086](https://user-images.githubusercontent.com/72588149/148900663-37ec009d-e3e3-4fd4-98ec-61c77da842f7.png)
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009627215


   > Hi @yun-0001 Please translate your issue into English. An instance ElasticJob may be reused in different `JobBootstrap`, which is up to your business logic.
   
   Is it feasible to dynamically add multiple triggers when the project starts, and multiple triggers correspond to the same business interface?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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



[GitHub] [shardingsphere-elasticjob] yun-0001 commented on issue #2037: 一个定时任务可以对应多个触发器吗

Posted by GitBox <gi...@apache.org>.
yun-0001 commented on issue #2037:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2037#issuecomment-1009654716


   > > > Not supported yet, but I think it is possible.
   > > 
   > > 
   > > Well, how to dynamically add tasks? A job that can be dynamically generated cannot be dynamically generated.
   > 
   > I have an idea about adding jobs dynamically. https://github.com/TeslaCN/flexijob
   
   Thanks, I'll test it 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

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