dpiuqwwyu187975836 2014-01-21 00:56
浏览 46
已采纳

ATK4&cron作业,使用ds-addons / Scheduler

I need cron job for my new application and found a nice add-on by DarkSide, but im having some difficulties using it.

The add-on is here: https://github.com/romaninsh/TemaOrig/tree/master/ds-addons/Scheduler

I have installed it till step 3, where windows scheduler reports "The windows cannot find the file specified".. but i guess i will try this tommorow.

What im really interested is some example of configuration (step4)

4a) Set scheduler global settings in "Config" tab.: How should i insert them, directly into database? So how do i insert: Important is, that you set "Heartbeat time" to exactly the same value (in minutes) what scheduled in your cron tab or Windows task scheduler.

Just a guess:

  • name: Heartbeat time
  • value: 5? Like every 5 minutes? Or do i put cron expression?
  • description: ??

4b) Create Tasks. I really do not know how to use this. What do i insert for Code, Class, Action?

  • 写回答

1条回答 默认 最新

  • dougou8458 2014-01-22 14:50
    关注

    Actually original source of ds-addons is here: https://github.com/DarkSide666/ds-addons and I'm author of this addons pack and particular add-on - Scheduler :)

    Questions and tips for you:

    • What is folder structure in your project folder? I'm of course especially interested where ds-addons folder is located.
    • Which version of Windows are you using and do you have Administrator rights on that machine?
    • Can you find file wscript.exe in your system hard-drive / Windows installation folder? In my WinXP it's located in c:\windows\system32 folder and as result is in PATH environmental variable and is accessible from anywhere. If that's not your case, then you have to provide full path to wscript.exe
    • 4a is no more needed in latest version of add-on
    • There is a sample Task class in readme in latest version of add-on
    • In Windows scheduler you can set script to execute every minute or every 3-5 minutes not less. Otherwise you'll have big delays between scheduled time (in add-on) and actual execution time.

    Solution:

    Download latest add-on version from https://github.com/DarkSide666/ds-addons and check out changes in it's readme file.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 MATLAB动图的问题
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名