Using cron jobs within Hyperledger Fabric Chaincod

2019-08-02 06:10发布

问题:

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.