Comments (2)
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.
排查了一段时间,不是robig/cron的问题,是我的问题,忽略这个吧。
from cron.
Related Issues (20)
- why don‘t support year level? HOT 1
- Why not use recover()?
- Feature request: add cron job description to entry HOT 4
- First xxday of a month not possible?
- Cron */240 * * * * (every 4 hours) executes every hour HOT 1
- Next output is right ?
- I have deployed crons with @daily in cloud foundry and it is not working HOT 1
- What is the status of the repo? HOT 4
- When creating a new cron object, multiple construction methods are provided.
- provide ant way to change the value of Now for testing purposes HOT 1
- I cannot pass second as 6th param for cronjob HOT 2
- Troubles in docker
- crontab run error HOT 2
- [discuss] Discussion of executing a single server under multiple nodes HOT 3
- does this package support standard crontab expr HOT 1
- Why is time zone not supported? this is exactly what i need HOT 1
- cron.New().Remove() HOT 1
- performance wise question
- During the execution process of scheduled tasks, a change in the system time can result in incorrect execution timing. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cron.