1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-06-10 18:50:22 +00:00

feat(viya): add runAsTask config feature for execution tasks

This commit is contained in:
mulahasanovic
2026-05-12 19:47:13 +02:00
parent 2db1b9fc4b
commit 3136e98477
2 changed files with 13 additions and 2 deletions
+5 -2
View File
@@ -102,6 +102,10 @@ export class WebJobExecutor extends BaseJobExecutor {
apiUrl += config.contextName?.trim()
? `&_contextname=${encodeURIComponent(config.contextName)}`
: ''
if (config.runAsTask === true) {
apiUrl += '&_executionTasks=true'
}
}
let requestParams = {
@@ -116,8 +120,7 @@ export class WebJobExecutor extends BaseJobExecutor {
// FIXME(viya - SAS Track CS0409737): remove when Viya stops rejecting empty multipart on
// _executionTasks=true. Dummy file keeps the body non-empty
const hasExecutionTasksFlag =
sasJob.includes('_executionTasks=true') || config.runAsTask === true
const hasExecutionTasksFlag = config.runAsTask === true
if (data) {
const stringifiedData = JSON.stringify(data)