简体   繁体   English

哪里可以每天获得1440个免费Cron工作?

[英]Where to get 1440 free cron jobs a day?

I'm making a program for my own use. 我正在制作一个供自己使用的程序。
In this program, I need to set up cron job. 在此程序中,我需要设置cron作业。 The cron job should run every minute (24 hr * 60 mins = 1440 times). Cron作业应每分钟运行一次(24小时* 60分钟= 1440次)。 Thus, I'll need to set up a cron job with a frequency of 1 minute. 因此,我需要设置频率为1分钟的cron作业。

I think Google App Engine gives free cron job. 我认为Google App Engine提供了免费的cron工作。 But I'm very new to it. 但是我对此很陌生。 I downloaded the java SDK and read the document but understood nothing :( So, I can't use Google App Engine. Is here any other free service like Google app engine which but with easier inferface??? 我下载了Java SDK并阅读了文档,但一无所知:(因此,我无法使用Google App Engine。这里有其他免费服务,例如Google App Engine,但它的界面更简单吗???

All I want is a cron job with 1 minute frequency 我只想做一份频率为1分钟的Cron工作

Please help/suggest me... 请帮助/建议我...
Thank you 谢谢

只需安装linux。

If this is a java app, then you can use Quartz , right? 如果这是一个Java应用程序,那么您可以使用Quartz ,对吗? This way you can control what to do when the job fails (like cleaning up certain resources, sending emails, etc). 这样,您可以控制作业失败时的处理方式(例如清理某些资源,发送电子邮件等)。

Maybe you want to use a service like setcronjob.com . 也许您想使用setcronjob.com之类的服务。

This lets you specify a URL that will be triggered periodically (according to the cron pattern you choose). 这样,您就可以指定一个将定期触发的URL(根据您选择的Cron模式)。

Of course, you still need to have a server somewhere to host the URL and implement the actual task there. 当然,您仍然需要在某处放置服务器来托管URL并在那里执行实际任务。

You can do this in App Engine - see the cron docs for details. 您可以在App Engine中执行此操作-有关详细信息,请参阅cron文档 In order to provide any more specific help, we'd need to know what you want that cron job to do, precisely. 为了提供任何更具体的帮助,我们需要准确地知道您希望该cron作业做什么。

I had the similar need. 我也有类似的需求。 Ended up testing a whole bunch of scheduling services. 最终测试了一大堆调度服务。 Check out cronservice.co.uk/new/, setcronjob.com or mywebcron.com. 请访问cronservice.co.uk/new/、setcronjob.com或mywebcron.com。 I ended up using the scheduler.codeeffects.com because of their set of features and the interface. 由于它们的功能和界面,我最终使用了scheduler.codeeffects.com。 Google for others, there are tons services like this. 谷歌为其他人,有这样的吨服务。 Most are free or give free stuff. 大多数都是免费的或免费提供的东西。 Sorry for the late reply, but I thought this might help. 抱歉,回复晚了,但我认为这可能会有所帮助。

To schedule a job in Java, use cron.xml 要使用Java计划作业,请使用cron.xml

Python uses the more terse cron.yaml format . Python使用更简洁的cron.yaml格式

In both cases, it's actually quite easy to use, you can schedule jobs, with the following actual description and Google App Engine will understand what it means: 在这两种情况下,它实际上都非常易于使用,您可以按照以下实际说明来安排作业,并且Google App Engine可以理解其含义:

every 12 hours
every 5 minutes from 10:00 to 14:00
2nd,third mon,wed,thu of march 17:00
every monday 09:00
1st monday of sep,oct,nov 17:00
every day 00:00

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

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