Using cron jobs within Hyperledger Fabric Chaincode

青春壹個敷衍的年華 提交于 2019-12-11 08:03:02

问题


I am attempting to setup a cron job to run on a 24 hour interval within my chaincode. I am trying to use the following library to set up the scheduler: https://github.com/jasonlvhit/gocron. If I run this outside of Fabric in a standalone go file it runs as it should. But running it on a deployed chaincode it is not setting up a new scheduled task. Is there something in Fabric that is preventing this library from working within the chaincode? If that is the case, can you recommend another solution that would work with Fabric.

来源:https://stackoverflow.com/questions/42353060/using-cron-jobs-within-hyperledger-fabric-chaincode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!