Forum

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

Punishing Jobs but ...
 
Notifications
Clear all

Punishing Jobs but accepting the report

1 Posts
2 Users
0 Likes
683 Views
0
Topic starter

Hi,

I am using MinTime=02:00 to punish for finishing a job early.

But I wat to accept the job as "Done" instead of refusing the report, even the job was not completed.

I am trying setting the flags like this

[procedure-quickjob]
  Message=You finished before time
  Input=I understand. Explain yourself...

  setflag=zzPermit
  RemoveFlag=zzDeny
  setflag=#zzPermit
  RemoveFlag=#zzDeny

[job-Another Awesome Task]
  Interval=3
  Muststart=1
  MinTime=2:00
  QuickPenalty1=50
  QuickPenalty2=5
  quickprocedure=quickjob

; BeforeDoneProcedure=quickjob
; DoneProcedure=quickjob

I also tried BeforeDone and Done procedures

 

Any advise?

Thanks!

1 Answer
0

When you use MinTime=2:00, the job cannot be done in less than 2 hours.

Maybe you can remove MinTime and instead use StartFlag to set a flag when the job is running. And then set a MinTime in the flag.

But beware that if the job is aborted, the sub will still be punished, because the flag will be removed. I don't really have a solution for that.

Sven