Forum

Please note that you can subscribe to the individual forums. A subscription for news only covers the news.

Same job given is given multiple times  

  RSS

0

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

 
0

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

 
su 14 9:11:01 PM   Are you required to complete work at home?
su 14 9:11:07 PM   "Yes "
su 14 9:11:07 PM   $work= I am required to complete work at home for my job.
su 14 9:11:07 PM   Flag on: workathomerequired
su 14 9:11:07 PM   Flag on: workathomerequiredwaiting
su 14 9:11:07 PM   Flag expires 2018-01-15 21:11:07
 
This is from the report when it is given on a daily basis if answered yes..
 
th 22 7:56:00 AM --Job announced with deadline
th 22 7:56:00 AM   2018-03-22 23:59:00 Complete work
th 22 7:56:00 AM   Response time 1 second
th 22 7:56:00 AM --Job announced with deadline
th 22 7:56:00 AM   2018-03-22 23:59:00 Complete work
th 22 7:56:01 AM   Response time 1 second
th 22 7:56:01 AM --Job announced with deadline
th 22 7:56:01 AM   2018-03-22 23:59:00 Complete work
th 22 7:56:01 AM   Response time 1 second
th 22 7:56:02 AM --Job announced with deadline
 
When initially starting the program it is not an issue and it is only assigned once. The problem seems to develop after a few weeks.  I have other similar questions and procedures in the program that function as they should.
 
Any suggestions?
 
Thanks, 
 
Chazz
 
 
0

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. 

 
0

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

 

 

 

 

 

 

 
Share: