Koozali.org: home of the SME Server

Affa - scheduling multiple daily runs

Offline JohnG

  • ***
  • 88
  • +0/-0
Affa - scheduling multiple daily runs
« on: March 27, 2017, 06:08:35 PM »
I'm running Affa on 9.1 with latest updates. How do you schedule multiple runs of a job per day? Comma separated values for the TimeSchedule property kicks out an error when doing a configcheck:

Code: [Select]
*** ERROR: Bad value: TimeSchedule=1245,1345
Thanks in advance.


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Affa - scheduling multiple daily runs
« Reply #1 on: March 28, 2017, 04:43:49 AM »
JohnG

You show
TimeSchedule=1245,1345
The wiki contribs article says
'TimeSchedule'=>'1130,1530,1930',
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline brianr

  • *
  • 988
  • +2/-0
Re: Affa - scheduling multiple daily runs
« Reply #2 on: March 28, 2017, 11:06:07 AM »
I found that this works:

TimeSchedule=0630
TimeSchedule=1300
TimeSchedule=1830

I guess someone should change the Wiki?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Affa - scheduling multiple daily runs
« Reply #3 on: March 28, 2017, 11:14:43 AM »
what about yourself? :-)

I see you have a wiki access

Offline gieres

  • *
  • 213
  • +0/-0
Re: Affa - scheduling multiple daily runs
« Reply #4 on: March 28, 2017, 12:50:07 PM »
Janet,
I believe your response is good for Affa2 only.
Thanks.

Offline brianr

  • *
  • 988
  • +2/-0
Re: Affa - scheduling multiple daily runs
« Reply #5 on: March 28, 2017, 12:56:30 PM »
what about yourself? :-)

I see you have a wiki access

I was waiting to see if someone confirmed it.....

done now:

https://wiki.contribs.org/Affa#Job_configuration_properties
« Last Edit: March 28, 2017, 01:07:05 PM by brianr »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline JohnG

  • ***
  • 88
  • +0/-0
Re: Affa - scheduling multiple daily runs
« Reply #6 on: March 28, 2017, 03:34:55 PM »
You show
TimeSchedule=1245,1345
The wiki contribs article says
'TimeSchedule'=>'1130,1530,1930',

Thanks. I believe that section of the article refers to the old way of creating affa jobs using perl. But the format of using commas between multiple HHMMs is how I remember doing it.

I found that this works:

TimeSchedule=0630
TimeSchedule=1300
TimeSchedule=1830

I guess someone should change the Wiki?

Thanks. I just tried it and according to affa --status it appears this will work but according to affa --show-schedule it won't. ¯\_(ツ)_/¯

I'll followup later on today as the job runs.



 

Offline JohnG

  • ***
  • 88
  • +0/-0
Re: Affa - scheduling multiple daily runs
« Reply #7 on: March 29, 2017, 01:53:49 AM »
Quick followup: It worked. I made three separate lines specifying 3 different times and they all kicked off appropriately. And the wiki looks good, thanks again!  :pint:

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Affa - scheduling multiple daily runs
« Reply #8 on: March 29, 2017, 02:53:12 AM »
Thanks. I believe that section of the article refers to the old way of creating affa jobs using perl. But the format of using commas between multiple HHMMs is how I remember doing it.

Thanks. I just tried it and according to affa --status it appears this will work but according to affa --show-schedule it won't. ¯\_(ツ)_/¯

I'll followup later on today as the job runs.

looking at the exchanges, Janet was pointing the lack of quotes around the values , Did you actiually tried with the quotes around ?

if, it kicked with 3 lines, and --status is correct then this part is good, now that wiki has been updated, but it seems that there is a bug that need fixing about --show-schedule

Can you open a bug and describe the problem  in https://bugs.contribs.org/enter_bug.cgi?product=SME%20Contribs&component=smeserver-affa so there will be a trace to fix it.

Offline JohnG

  • ***
  • 88
  • +0/-0
Re: Affa - scheduling multiple daily runs
« Reply #9 on: March 30, 2017, 04:38:13 AM »
Yes, I tried it with single quotes, double quotes, as well as various versions of quoted perl, which didn't make much sense since it's a configuration file.

And yes, good point, it's minor but the show-schedule would need to be fixed. I created a bug: https://bugs.contribs.org/show_bug.cgi?id=10196

Thanks!


Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Affa - scheduling multiple daily runs
« Reply #10 on: March 30, 2017, 08:28:57 PM »
JohnG,

thank you for taking the time to answer and opening the bug. I can promise any delay have it fixed, but it will help to have it here.

Jean-Philippe