向GAE添加动态cron作业 [英] Adding dynamic cron jobs to GAE

查看:73
本文介绍了向GAE添加动态cron作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在GAE中,我们可以通过编辑cron.xml文件来手动添加cron作业

In GAE we can add cron job manually by editing the cron.xml file

<?xml version="1.0" encoding="UTF-8"?>
<cronentries>
  <cron>
    <url>/cron/addCount/1</url>
    <description>Add count + 1 every 1 minutes</description>
    <schedule>every 1 minutes</schedule>
  </cron>
</cronentries>

有什么方法可以使用户界面并创建/更新/删除尽可能多的cron作业这意味着在部署到GAE之后,我应该能够更新cron.xml吗?还是有解决方法,以便我可以即时创建cron作业?

Is there any way that I can make a user interface and create/update/delete as many cron jobs on the fly.That means after I deploy to GAE , I should be able to update the cron.xml ? Or is there a work around so that I can create cron jobs on the fly ?

推荐答案

您可以使用推送队列来创建和运行任务。

You can use push queues to create and run tasks.

这篇关于向GAE添加动态cron作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆