Jump to content

API Scheduler troubleshooting


Recommended Posts

Figured it out!

Many mistakes... I inverted Service and API (not a good start) and my report was in dev status. Also, I forgot to remove the report parameters (as I did not configure them in the config file).

All working fine now :)

And as for my question about a screen in the admin section, forget it as I simply did not quite understand how the tool was working :blink:

Link to comment
Share on other sites

Still struggling a bit on this topic with the scheduling... When I use the cron schedule "* * * * * *" it works perfectly. But when I try "0 0 1-31 * * *" it does not. Same with "0,15,30,45 1-23 * * * *"

I am using this as a guidance : http://www.nncron.ru/help/EN/working/cron-format.htm

Can somebody help me? What am I doing wrong?

Link to comment
Share on other sites

@Lyonel For some reason we have to add a 0 at the beginning of the cron schedule.

So ours reads 0 30 07 * * 1-5 for our morning checks (every weekday at 0730) if we drop the leading zero it doesn't work but I cant find a schedule explanation which uses a leading zero anywhere.

 

Link to comment
Share on other sites

@Dan Munns thanks again for your input :) It worked like a charm last night.

That being said, if someone from Hornbill is reading this post, I think they might want to clarify which cron schedule format should be used on the description page of the API scheduler on git hub... 

Link to comment
Share on other sites

13 minutes ago, Lyonel said:

@Dan Munns thanks again for your input :) It worked like a charm last night.

That being said, if someone from Hornbill is reading this post, I think they might want to clarify which cron schedule format should be used on the description page of the API scheduler on git hub... 

Actually found the right information on Github! I was being silly but basically all we need to know is here:

https://github.com/hornbill/cron

https://godoc.org/github.com/robfig/cron

Here is the format to use for the API Scheduler;

58aff47adbb43_cronformat.png.a59ea25204a75240733e6c112adaa3eb.png

Quite different to what I was following, which explains my troubleshooting issues. It also explains the leading "0" @Dan Munns as it corresponds to seconds.

I hope this post will be useful to other adventurous Hornbill users :P

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...