Skip to content

Commit

Permalink
testplug - WF arg for duraiton
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeTWC1984 committed Oct 26, 2023
1 parent f3a3442 commit 6a63851
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/test-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6a63851

Please sign in to comment.