From 8d64b304199571f194965d9295eb7d4c7f25cbef Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Thu, 4 Feb 2021 14:12:02 +0100 Subject: [PATCH] fix: adding a one second pause between every SAS Job Request in mv_jobflow.sas --- all.sas | 7 +++++++ viya/mv_jobflow.sas | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/all.sas b/all.sas index 6ea3154..1f32494 100644 --- a/all.sas +++ b/all.sas @@ -13400,6 +13400,9 @@ libname &libref; ![https://i.imgur.com/nZE9PvT.png](https://i.imgur.com/nZE9PvT.png) + To avoid hammering the box with many hits in rapid succession, a one + second pause is made between every request. + ## Example @@ -13662,6 +13665,10 @@ data;run;%let jdswaitfor=&syslast; proc append base=&jdsrunning data=&jdsapp; run; %let concurrency=%eval(&concurrency+1); + /* sleep one second after every request to smooth the impact */ + data _null_; + call sleep(1,1); + run; %end; %end; %if &jid=&jcnt %then %do; diff --git a/viya/mv_jobflow.sas b/viya/mv_jobflow.sas index f49d99d..aa4f1af 100644 --- a/viya/mv_jobflow.sas +++ b/viya/mv_jobflow.sas @@ -34,6 +34,9 @@ ![https://i.imgur.com/nZE9PvT.png](https://i.imgur.com/nZE9PvT.png) + To avoid hammering the box with many hits in rapid succession, a one + second pause is made between every request. + ## Example @@ -296,6 +299,10 @@ data;run;%let jdswaitfor=&syslast; proc append base=&jdsrunning data=&jdsapp; run; %let concurrency=%eval(&concurrency+1); + /* sleep one second after every request to smooth the impact */ + data _null_; + call sleep(1,1); + run; %end; %end; %if &jid=&jcnt %then %do;