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 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用
  • ¥15 运筹学排序问题中的在线排序
  • ¥15 关于docker部署flink集成hadoop的yarn,请教个问题 flink启动yarn-session.sh连不上hadoop,这个整了好几天一直不行,求帮忙看一下怎么解决
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛