I am running BIX extract rules using JobScheduler rules on both the nodes. Also once all jobs finished I have final jobscheduler(CreateAndFTPZipFolder) which is responsible to create zip folder and do FTP. As I am running all jobs and final job(CreateAndFTPZipFolder) on both the nodes I am getting 2 different files with 2 diff timestamp. I used timetamp while creating zip folder. Its running fine without any issue. Now my requirement is to create only one zip instead of two zip files. I have below questions.
1. Is there any possibility that we can check if first folder got created/Exists on FTP location and dont create another one if already exists?
2. How do we make sure the final job(CreateAndFTPZipFolder) should run on only one time successfully? ( i still want to run it on both node)
3.We have two diff servicefolder location for each background node so checking file exists is not the option.
We are using Pega 8.4.6 version ,PEGA BIX 8.4
***Edited by Moderator: Pooja Gadige to add product details tag, add platform capability tag***
@YogeshW4666 For your second question you can try this approach:
When ever JS is executed an instance with Unique Identifier is created in Log-JobScheduler class table. We can check whether any instance is created for that particular job by passing job name to either pzJobHistoryReport report definition in the JS activity as first step or by doing Obj-Browse in the JS activity before the actual processing of JS starts. If the result count is greater than zero which means already JS is executed that day which signifies folder is already created, then we can skip the zip folder creation and continue rest of the activity. If it's not greater than zero then code for creation of folder and rest can be processed as usual.
Posted: 2 years ago
Posted: 8 Jun 2021 9:20 EDT
Jim Kelly (JimKelly_GCS)
Senior Manager of Technical Support Engineering