Jump to content

Recommended Posts

Posted

Hi guys,

Just tried the API scheduler today and I am facing some issues so I was trying to troubleshoot... Here is my config file: conf.json

Is there a screen in the admin section where we can see all the custom scheduled API calls?

Thanks,

Lyonel

Posted

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:

Posted

@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.

 

Posted

Thanks @Dan Munns for your reply. So if I wanted something to run every day at midnight I should enter something like "0 0 0 * * 1-5" then? Will give it a try tonight and see tomorrow then.

Posted

@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... 

Posted
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

 

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...