From 6a638515d6acb79e0f5d3f4b013b04fd50277c5f Mon Sep 17 00:00:00 2001 From: Mike Date: Thu, 26 Oct 2023 14:23:58 -0400 Subject: [PATCH] testplug - WF arg for duraiton --- bin/test-plugin.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/test-plugin.js b/bin/test-plugin.js index cc97517..1ca0c3b 100644 --- a/bin/test-plugin.js +++ b/bin/test-plugin.js @@ -58,6 +58,8 @@ stream.on('json', function(job) { else { duration = parseInt( job.params.duration ); } + // check WF passed duration argument + if(parseInt(process.env['JOB_ARG'])) duration = parseInt(process.env['JOB_ARG']) var timer = setInterval( function() { var now = Tools.timeNow();