Question

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?

Était-ce utile?

La solution

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.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top