Please note that you can subscribe to the individual forums. A subscription for news only covers the news.
Hi everyone,
For some reason when the below question is answered yes at the start of the program the command is given multiple times in the morning. Sometimes 3-4 times. Initially only once and then it seems to get worse as the program advances in time. Any suggestions? Thank you for any help.
[question-workquestion]
phrase=Are you required to complete work at home?
?No =noworkhome
?Yes =yesworkhome
[procedure-noworkhome]
;intentionally left blank
[procedure-yesworkhome]
setflag=workathomerequired
procedure=setflagworkathomerequired
;----work at home required-----
[timer-Startworkathomerequired]
start=08:00
end=22:00
procedure=workathomerequired
if=workathomerequired
[procedure-workathomerequired]
job=Complete work
setflag=workathomerequiredpending
notif=workathomerequiredwaiting
notif=workathomerequiredpending
[job-Complete work]
TEXT=
TEXT=COMPLETE YOUR WORK - Deadline: {!zzdeadline}
interval=1
longrunning=1
muststart=1
respit=23:00
RemindPenalty=5,30
remindpenaltygroup=min
doneprocedure=doneworkathomerequired
[procedure-doneworkathomerequired]
procedure=donework
procedure=setflagworkathomerequired
[procedure-setflagworkathomerequired]
removeflag=workathomerequiredpending
setflag=workathomerequiredwaiting
[flag-workathomerequiredwaiting]
duration=1d
At the first look, it looks fine to me. What triggers the message? It is shown in the report.
Can you show us the report where the command is given?
Sven B.
Hi everyone,
This is the report from when the question is asked...
Is this job intended to run every day even if the sub answers no, and to have an extra assignment if they answer yes? I see that the job definition includes interval=1, meaning it would be assigned every day in addition to being called from the procedure. I'm not sure how this would wind up with more than two jobs in one day - possible that unexpired jobs are rolling over when not completed? There's no ExpireAfter.
Hi chazz,
You cut too much in the report, it's not possible to see what triggered the announcement of the jobs.
But I notice that it cannot be the timer, as it cannot start before 8 am, and the jobs are announced 7:56 am.
I also notice that more than two month has gone between the question and the announcement. Much can have happened to the flags in that time.
My guess is that the job is announced because of Interval=1, as hyacinth suggests, and not because of the timer.
Are you sure that you don't have other jobs with Title=Complete work?
I suggest that you remove Interval=1, and let the timer trigger the job.
Sven