sasjs / core

Macros for SAS® App Developers
https://core.sasjs.io
MIT License
119 stars 17 forks source link

378 ms triggerstpsas #379

Closed tmoody closed 5 days ago

tmoody commented 6 days ago

Issue

378

Intent

Here is a macro to call the sasjs api .../stp/trigger endpoint and request that the named job be executed and, optionally, for how long the session folder of that job should be retained beyond the completion of its session (which defaults to 15 minutes). The api returns the sessionid of the initiated job which is recorded by this macro in a SAS dataset.

Implementation

This introduces only new code, based upon the design of ms_runstp.sas. No existing code is changed.

Checks

tmoody commented 5 days ago

Tests added.

, "test_results":
[
{"TEST_DESCRIPTION":"Testing Scope Leakage" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"GLOBAL Variables Unmodified" }
,{"TEST_DESCRIPTION":"Testing output exists" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERT: Test result of 1=1" }
,{"TEST_DESCRIPTION":"Testing observations" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERTDSOBS: Dataset work.mySessions has 2 observations." }
,{"TEST_DESCRIPTION":"Testing column exists" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERTCOLS: work.mySessions has ALL columns" }
,{"TEST_DESCRIPTION":"Checking final err condition" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERT: Test result of (0=0)" }
]
tmoody commented 5 days ago

Test results for latest update

"test_results":
[
{"TEST_DESCRIPTION":"Testing Scope Leakage" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"GLOBAL Variables Unmodified" }
,{"TEST_DESCRIPTION":"Testing output exists" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERT: Test result of 1=1" }
,{"TEST_DESCRIPTION":"Testing observations" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERTDSOBS: Dataset work.mySessions has 2 observations." }
,{"TEST_DESCRIPTION":"Testing column exists" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERTCOLS: work.mySessions has ALL columns" }
,{"TEST_DESCRIPTION":"Testing type and content of output" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERT: Test result of C = C and 1 = 1" }
,{"TEST_DESCRIPTION":"Checking final err condition" ,"TEST_RESULT":"PASS" ,"TEST_COMMENTS":"MP_ASSERT: Test result of (0=0)" }
]
github-actions[bot] commented 5 days ago

:tada: This PR is included in version 4.53.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: