Giter Site home page Giter Site logo

Comments (2)

ccpwcn avatar ccpwcn commented on June 20, 2024

I tried it a few more times and found a strange thing. If I had a bunch of cron initialization and call related code with the main package and executed it first to start gin, it would be fine, but if I put it in another package, started it and then went back to the main package to start gin, it wouldn't work. panic causes the program to exit. It's really weird.

又试了很多次,发现一个奇怪的现象,如果我的那一堆cron初始化及调用相关的代码,和main包在一起,先执行它们再去启动gin服务,是没问题,如果放在另外的一个代码包中,启动它之后回到main包中启动gin服务器,竟然就不行了,会导致panic引发程序退出。真的是太奇怪了。

from cron.

ccpwcn avatar ccpwcn commented on June 20, 2024

排查了一段时间,不是robig/cron的问题,是我的问题,忽略这个吧。

from cron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.