Skip to content

Commit

Permalink
added minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed Jan 26, 2024
1 parent a99249d commit bd00bba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/nexrender-action-upload/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"@nexrender/provider-gs": "^1.21.3",
"@nexrender/provider-s3": "^1.21.4",
"@nexrender/provider-sftp": "^1.37.9",
"@nexrender/provider-nx": "^1.37.9"
"@nexrender/provider-nx": "^1.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/nexrender-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@nexrender/provider-gs": "^1.21.3",
"@nexrender/provider-s3": "^1.21.4",
"@nexrender/provider-sftp": "^1.37.9",
"@nexrender/provider-nx": "^1.37.9"
"@nexrender/provider-nx": "^1.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/nexrender-provider-nx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nexrender/provider-nx",
"homepage": "https://www.nexrender.com",
"version": "1.46.4",
"version": "1.0.0",
"main": "src/index.js",
"scripts": {},
"author": "Vladyslav Hrytsenko",
Expand Down
16 changes: 7 additions & 9 deletions packages/nexrender-worker/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,13 @@ const start = async (host, secret, settings, headers) => {
settings.onError(job, err);
}

await client.updateJob(job.uid, getRenderingStatus(job)).catch((err) => {
if (settings.stopOnError) {
throw err;
} else {
console.log(`[${job.uid}] error occurred: ${err.stack}`)
console.log(`[${job.uid}] render proccess stopped with error...`)
console.log(`[${job.uid}] continue listening next job...`)
}
});
try {
await client.updateJob(job.uid, getRenderingStatus(job))
}
catch (e) {
console.log(`[${job.uid}] error while updating job state to ${job.state}. Job abandoned.`)
console.log(`[${job.uid}] error stack: ${e.stack}`)
}

if (settings.stopOnError) {
throw err;
Expand Down

0 comments on commit bd00bba

Please sign in to comment.