简体   繁体   English

CloudControl服务器上的CRON

[英]CRON on CloudControl server

I've setup a node.js server with cron jobs via node-cron , which is js-land cron implementation. 我已经通过node-cron设置了带有cron作业的node.js服务器,这是js-land cron实现。 I've noticed that sometimes the jobs are not launching, aparently without errors and following an unknown pattern. 我注意到有时作业没有启动,显然没有错误并且遵循未知模式。

Well, since this server is a free one, I was thinking that maybe it goes to sleep when there is no activity, so that the jobs are not launching. 好吧,由于该服务器是免费的,所以我一直在想,如果没有任何活动,它可能会进入睡眠状态,从而使作业无法启动。 I've looked the docs and I haven't seen any clear indication on this. 我看了看文档,却没有看到任何明确的迹象。

I've already seen the Cron addon, but I'm not interested on it. 我已经看过Cron插件了,但是我对此并不感兴趣。 I'll like to make it work within a js process. 我想使其在js流程中工作。

Thanks! 谢谢!

cloudControl uses Container idling ( https://www.cloudcontrol.com/dev-center/Platform%20Documentation#deploying-new-versions ) for free deployments. cloudControl使用容器空闲( https://www.cloudcontrol.com/dev-center/Platform%20Documentation#deploying-new-versions )进行免费部署。

If a free deployment (1 container with 128MB) does not get any requests within a timeframe of one hour the container is idled ("server goes to sleep"). 如果免费部署(1个具有128MB的容器)在一个小时的时间内没有收到任何请求,则该容器处于空闲状态(“服务器进入睡眠状态”)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM