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/08/19 11:57:12 UTC

[GitHub] [shardingsphere-elasticjob] Technoboy- opened a new issue #1389: How to handle the resources that cause by job execute only once?

Technoboy- opened a new issue #1389:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1389


   Suppose we have 100 jobs that every job trigger only once like cron '0 0 0 22 8 ? 2020'.
   What I mean is that it will be trigger only once sometime in the future. After that , the ejob resource retains in the memory.
   How could we handle this, like shutdown the instance or cleanup the zk datas ?
   If we support centralized scheduling, we can handle it easily. But could we need to support in lite or can we discuss out a good idea for this?


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1389: How to handle the resources that cause by job execute only once?

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


   > Whether we can support the once job at once time, To replace Cron job
   > 
   > like
   > 
   > ```
   > .cron("0/5 * * * * ?")
   > ```
   > 
   > to
   > 
   > ```
   > .triggerTime(timestamp)
   > ```
   
   Yes,we support by OneOffJob.


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1389: How to handle the resources that cause by job execute only once?

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


   > Even jobs run only once, we still need to keep job configs and status in ZooKeeper.
   > Because we can not assume that user never change the config and trigger jobs again.
   
   Yes, but users really have the need to trigger only once, no more.
   This issue is produced by #1378 . And want to discuss more about 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.

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



[GitHub] [shardingsphere-elasticjob] zhaoyuguang edited a comment on issue #1389: How to handle the resources that cause by job execute only once?

Posted by GitBox <gi...@apache.org>.
zhaoyuguang edited a comment on issue #1389:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1389#issuecomment-677528017


   Whether we can support the once job at once time, To replace Cron job
   
   like
   ```
   .cron("0/5 * * * * ?")
   ```
   to
   ```
   .triggerTime(timestamp)
   ```


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] terrymanu edited a comment on issue #1389: How to handle the resources that cause by job execute only once?

Posted by GitBox <gi...@apache.org>.
terrymanu edited a comment on issue #1389:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1389#issuecomment-676502965






----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] zhaoyuguang edited a comment on issue #1389: How to handle the resources that cause by job execute only once?

Posted by GitBox <gi...@apache.org>.
zhaoyuguang edited a comment on issue #1389:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1389#issuecomment-677528017


   Whether we can support the once job at once time, To replace Cron job


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1389: How to handle the resources that cause by job execute only once?

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


   After discussing, we can not find out a nice idea to do it. So close this issue. 


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] Technoboy- commented on issue #1389: How to handle the resources that cause by job execute only once?

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


   > Whether we can support the once job at once time, To replace Cron job
   > 
   > like
   > 
   > ```
   > .cron("0/5 * * * * ?")
   > ```
   > 
   > to
   > 
   > ```
   > .triggerTime(timestamp)
   > ```
   
   Maybe I'm catching what you mean. I will try to figure out the idea.


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] terrymanu edited a comment on issue #1389: How to handle the resources that cause by job execute only once?

Posted by GitBox <gi...@apache.org>.
terrymanu edited a comment on issue #1389:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1389#issuecomment-676502965


   Even jobs run only once, we still need to keep job configs and status in ZooKeeper.
   Because we can not assume that user never change the config and trigger jobs again. 


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] terrymanu commented on issue #1389: How to handle the resources that cause by job execute only once?

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


   Even the job run only once, we still need to keep job config and status in zk.
   Because we can not assume user do not change the config and trigger job again. 


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] Technoboy- closed issue #1389: How to handle the resources that cause by job execute only once?

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


   


----------------------------------------------------------------
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



[GitHub] [shardingsphere-elasticjob] zhaoyuguang commented on issue #1389: How to handle the resources that cause by job execute only once?

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


   Whether we can support the once job at once time


----------------------------------------------------------------
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