Topic Options
#56806 - 03/01/19 10:04 AM sleep plug in
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 324
Loc: Home
Hi,
I have an issue with Sleep plug in, it's not working for 60 minutes, debugs works when I put 55 minutes, but in service mode it fails, is there a scrip or any other ways to delay the time.

My process first looks for a specific file then I need to delay for 60 minutes then I want to continue.

Can someone please help.

THANKS
_________________________
Peace

Top
#56807 - 03/01/19 10:42 AM Re: sleep plug in [Re: Sami786]
RobertOtis Offline
OL User

Registered: 08/26/13
Posts: 82
Loc: Montreal,Quebec
Sami786,

look at this Post

Top
#56808 - 03/01/19 02:29 PM Re: sleep plug in [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 324
Loc: Home
Thank you Robert,
I'll try the vbscrip, but do you know if the issue with sleep plug is known? I got sleep plug from OL site but I also know third party plug ins are not supported! are they fixing this issue by any chance?
_________________________
Peace

Top
#56809 - 03/01/19 03:38 PM Re: sleep plug in [Re: Sami786]
RobertOtis Offline
OL User

Registered: 08/26/13
Posts: 82
Loc: Montreal,Quebec
Sami786,



you can use the run script to use the watch.sleep function here more info
Since custom plug in are not supported the issue with that plug in will not be done.
try this Watch.sleep 3600000 in a run script

Top
#56810 - 03/02/19 12:16 PM Re: sleep plug in [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 324
Loc: Home
Great, thank you Robert smile
_________________________
Peace

Top
#56811 - 03/04/19 04:39 PM Re: sleep plug in [Re: Sami786]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1933
Loc: Objectif Lune, Montreal, Qc
Out of curiosity, why are you using a sleep plugin that pauses your process for 60 minutes? This freezes a thread on your system and may use up valuable clock cycles.

Couldn't you instead set the Process' polling interval to 3600 seconds, which would achieve the same thing (unless I misunderstand what you want to achieve). That way, the process would exit elegantly (whether or not it processed files) and would run again an hour later.
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#56815 - 03/05/19 09:32 AM Re: sleep plug in [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 324
Loc: Home
Hi Philipper, The only reason why I need to use sleeper is stated below:

We receive 100s of files on daily base.

Process A: Will check for the files every 15 minutes and then data files will be moved to another folder to generate PDF files.

Process B: will check for the flag file and sleeps for one hour to make sure creation of the PDF are done, then after one hours which is more then enough PDF files will be moved to production.

So now if I don't use Sleep plugin, then PDF file will be moved while it's not completed. The other problem is that we don't know the time when we receive files and when PDF are done processing.

So once we receive the first file process A will generate the flag and process B will kick off if flag exits, then sleeps for one hours to complete PDFs.

So now If I use polling interval I would not know when the process is started and how do I know if all the PDF files are completed, there's a risk of PDF are not completed while polling interval is done!


Edited by Sami786 (03/05/19 09:34 AM)
_________________________
Peace

Top
#56822 - 03/06/19 12:18 PM Re: sleep plug in [Re: Sami786]
Philippe F. Offline
OL Expert

Registered: 09/06/00
Posts: 1933
Loc: Objectif Lune, Montreal, Qc
If you generate all your PDFs inside a branch, then once the branch exits and returns control to the trunk, you know without a doubt that all your PDF files have been generated.

Unless you are using a PlanetPress Image output task, in which case your PDFs are generated asynchronously and you can't know for sure when the last PDF has been generated. Depending on your requirements, you could replace that output task with a Digital Action task, which performs synchronously.

But hey, if your method works and you like it as it is, who am I to judge? smile
_________________________
Technical Product Manager
I don't want to achieve immortality through my work; I want to achieve immortality through not dying - Woody Allen

Top
#56827 - 03/07/19 02:16 PM Re: sleep plug in [Re: Sami786]
Sami786 Offline
OL Expert

Registered: 01/29/14
Posts: 324
Loc: Home
Philippe thank you for the info but I'm not sure what are you referring to, I do use Digital Action task, but each data file contains 1000s of records, we might receive 40 data files. How do I know one data file is finished creating PDF and the next data file is starting. How do I know all my data files run and PDF are created? number of files are not known.
_________________________
Peace

Top