mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 19:58:21 +01:00
linux-worker: automatically set job pwd if it is not specified in job description
This commit is contained in:
parent
dd3aae50c9
commit
98335a2a51
@ -2,6 +2,7 @@
|
|||||||
AntOSDK: development API for AntOS based applications/projects
|
AntOSDK: development API for AntOS based applications/projects
|
||||||
|
|
||||||
## Change logs
|
## Change logs
|
||||||
|
- 0.0.13: allow linux-job handle to set defaut pwd if it is not specified in job description
|
||||||
- 0.0.12: TS worker now allows user specific compile options (defined un build file)
|
- 0.0.12: TS worker now allows user specific compile options (defined un build file)
|
||||||
- 0.0.11: Update AntOS API v1.2.1
|
- 0.0.11: Update AntOS API v1.2.1
|
||||||
- 0.0.10: fix binary readfile bug
|
- 0.0.10: fix binary readfile bug
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
AntOSDK: development API for AntOS based applications/projects
|
AntOSDK: development API for AntOS based applications/projects
|
||||||
|
|
||||||
## Change logs
|
## Change logs
|
||||||
|
- 0.0.13: allow linux-job handle to set defaut pwd if it is not specified in job description
|
||||||
- 0.0.12: TS worker now allows user specific compile options (defined un build file)
|
- 0.0.12: TS worker now allows user specific compile options (defined un build file)
|
||||||
- 0.0.11: Update AntOS API v1.2.1
|
- 0.0.11: Update AntOS API v1.2.1
|
||||||
- 0.0.10: fix binary readfile bug
|
- 0.0.10: fix binary readfile bug
|
||||||
|
@ -37,6 +37,10 @@ class LinuxJob extends AntOSDKBaseJob {
|
|||||||
this.result("Done");
|
this.result("Done");
|
||||||
};
|
};
|
||||||
socket.onopen = (e) => {
|
socket.onopen = (e) => {
|
||||||
|
if(!this.job.data.pwd)
|
||||||
|
{
|
||||||
|
this.job.data.pwd = this.job.root;
|
||||||
|
}
|
||||||
// send the command
|
// send the command
|
||||||
const cmd = {
|
const cmd = {
|
||||||
path: path,
|
path: path,
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "mrsang@iohub.dev"
|
"email": "mrsang@iohub.dev"
|
||||||
},
|
},
|
||||||
"version": "0.0.12-a",
|
"version": "0.0.13-a",
|
||||||
"category": "Development",
|
"category": "Development",
|
||||||
"iconclass": "fa fa-cog",
|
"iconclass": "fa fa-cog",
|
||||||
"mimes": [
|
"mimes": [
|
||||||
|
Binary file not shown.
@ -37,6 +37,10 @@ class LinuxJob extends AntOSDKBaseJob {
|
|||||||
this.result("Done");
|
this.result("Done");
|
||||||
};
|
};
|
||||||
socket.onopen = (e) => {
|
socket.onopen = (e) => {
|
||||||
|
if(!this.job.data.pwd)
|
||||||
|
{
|
||||||
|
this.job.data.pwd = this.job.root;
|
||||||
|
}
|
||||||
// send the command
|
// send the command
|
||||||
const cmd = {
|
const cmd = {
|
||||||
path: path,
|
path: path,
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "mrsang@iohub.dev"
|
"email": "mrsang@iohub.dev"
|
||||||
},
|
},
|
||||||
"version": "0.0.12-a",
|
"version": "0.0.13-a",
|
||||||
"category": "Development",
|
"category": "Development",
|
||||||
"iconclass": "fa fa-cog",
|
"iconclass": "fa fa-cog",
|
||||||
"mimes": [
|
"mimes": [
|
||||||
|
@ -205,7 +205,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/README.md",
|
||||||
"category": "Development",
|
"category": "Development",
|
||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"version": "0.0.12-a",
|
"version": "0.0.13-a",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/build/release/libantosdk.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/libantosdk/build/release/libantosdk.zip"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user