Upgrades people!
This commit is contained in:
parent
f84234150f
commit
8ad56e8d38
40 changed files with 483 additions and 379 deletions
|
@ -22,9 +22,11 @@ const wrapCommand = (jobId, command) => {
|
|||
? `node ${executorBin}`
|
||||
: `chmod +x ${executorBin} && ./${executorBin}`;
|
||||
const cmd = command.map((arg) => JSON.stringify(arg));
|
||||
const curlCmd = `curl -o qltr-executor ${executorUrl} && ${bin} ${qualiteerUrl} ${jobId} ${cmd.join(
|
||||
" "
|
||||
)}`;
|
||||
const payload = Buffer.from(
|
||||
JSON.stringify({ jobId, command, url: qualiteerUrl }),
|
||||
"utf8"
|
||||
).toString("base64");
|
||||
const curlCmd = `curl -o qltr-executor ${executorUrl} && ${bin} ${payload}`;
|
||||
return curlCmd;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue