Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
node-bigstream
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bs
node-bigstream
Commits
152f6d53
Commit
152f6d53
authored
Apr 11, 2020
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev release
parent
dc7bfbd1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
10 deletions
+17
-10
Changelog
Changelog
+5
-1
jobtask.js
jobworker/lib/jobtask.js
+11
-8
version.json
version.json
+1
-1
No files found.
Changelog
View file @
152f6d53
#Changelog
#Changelog
## [1.2.3] - 2019-11-19
## [1.2.3-UR]
### Fixed
- BS :: AMQP RPC Singleton Connection ,auto ack
- STORAGE :: 50x speedup
### Added
### Added
- BS :: env configuration context
- PLUGIN :: dt-transform register
- PLUGIN :: dt-transform register
- BS :: Configuration Context with ENV
- BS :: Configuration Context with ENV
- PLUGIN :: do-http
- PLUGIN :: do-http
...
...
jobworker/lib/jobtask.js
View file @
152f6d53
...
@@ -98,8 +98,8 @@ JobTask.prototype.run = function ()
...
@@ -98,8 +98,8 @@ JobTask.prototype.run = function ()
var
task_di
=
function
(
callback
)
{
var
task_di
=
function
(
callback
)
{
var
dm_i
=
domain
.
create
();
var
dm_i
=
domain
.
create
();
dm_i
.
on
(
'error'
,
function
(
err
)
{
dm_i
.
on
(
'error'
,
function
(
err
)
{
//
console.log('[DI] plugins error');
console
.
log
(
'[DI] plugins error'
);
//
console.log(err);
console
.
log
(
err
);
self
.
stats
.
di
=
{
'status'
:
'error'
,
'data'
:
'plugins error'
};
self
.
stats
.
di
=
{
'status'
:
'error'
,
'data'
:
'plugins error'
};
callback
({
'status'
:
'error'
,
'data'
:
'plugins error'
});
callback
({
'status'
:
'error'
,
'data'
:
'plugins error'
});
});
});
...
@@ -108,7 +108,7 @@ JobTask.prototype.run = function ()
...
@@ -108,7 +108,7 @@ JobTask.prototype.run = function ()
perform_di
({
'context'
:
context
,
'handle'
:
self
}
,
function
(
err
,
resp
){
perform_di
({
'context'
:
context
,
'handle'
:
self
}
,
function
(
err
,
resp
){
if
(
resp
){
if
(
resp
){
console
.
log
(
'[DI STATUS]
\
t
\
t: '
+
resp
.
status
);
//
console.log('[DI STATUS]\t\t: ' + resp.status);
self
.
stats
.
di
=
resp
;
self
.
stats
.
di
=
resp
;
}
}
if
(
resp
.
status
==
'success'
){
if
(
resp
.
status
==
'success'
){
...
@@ -129,8 +129,8 @@ JobTask.prototype.run = function ()
...
@@ -129,8 +129,8 @@ JobTask.prototype.run = function ()
var
dm_t
=
domain
.
create
();
var
dm_t
=
domain
.
create
();
dm_t
.
on
(
'error'
,
function
(
err
)
{
dm_t
.
on
(
'error'
,
function
(
err
)
{
//
console.log('[DT] plugins error');
console
.
log
(
'[DT] plugins error'
);
//
console.log(err);
console
.
log
(
err
);
self
.
stats
.
dt
=
{
'status'
:
'error'
,
'data'
:
'plugins error'
};
self
.
stats
.
dt
=
{
'status'
:
'error'
,
'data'
:
'plugins error'
};
callback
({
'status'
:
'error'
,
'data'
:
'plugins error'
});
callback
({
'status'
:
'error'
,
'data'
:
'plugins error'
});
});
});
...
@@ -181,14 +181,16 @@ JobTask.prototype.run = function ()
...
@@ -181,14 +181,16 @@ JobTask.prototype.run = function ()
var
dm_o
=
domain
.
create
();
var
dm_o
=
domain
.
create
();
dm_o
.
on
(
'error'
,
function
(
err
)
{
dm_o
.
on
(
'error'
,
function
(
err
)
{
//
console.log('[DO] plugins error');
console
.
log
(
'[DO] plugins error'
);
//
console.log(err);
console
.
log
(
err
);
callback
({
'status'
:
'error'
,
'data'
:
'plugins error'
});
callback
({
'status'
:
'error'
,
'data'
:
'plugins error'
});
});
});
dm_o
.
run
(
function
()
{
dm_o
.
run
(
function
()
{
perform_do
({
'context'
:
context
,
'request'
:
do_request
,
'handle'
:
self
},
function
(
err
,
do_resp
){
perform_do
({
'context'
:
context
,
'request'
:
do_request
,
'handle'
:
self
},
function
(
err
,
do_resp
){
if
(
do_resp
){
console
.
log
(
'[DO STATUS]
\
t
\
t: '
+
do_resp
.
status
);}
if
(
do_resp
){
//console.log('[DO STATUS]\t\t: ' + do_resp.status);
}
if
(
do_resp
.
status
==
'success'
){
if
(
do_resp
.
status
==
'success'
){
callback
(
null
,
do_resp
);
callback
(
null
,
do_resp
);
}
else
{
}
else
{
...
@@ -211,6 +213,7 @@ JobTask.prototype.run = function ()
...
@@ -211,6 +213,7 @@ JobTask.prototype.run = function ()
async
.
waterfall
([
task_di
,
task_dt
,
task_do
],
function
(
err
,
resp
)
{
async
.
waterfall
([
task_di
,
task_dt
,
task_do
],
function
(
err
,
resp
)
{
clearTimeout
(
jtimeout
);
clearTimeout
(
jtimeout
);
console
.
log
(
'[JOB DONE] id='
+
job_id
+
' ,tr='
+
transaction_id
+
'
\
t'
+
resp
.
status
);
if
(
!
err
){
if
(
!
err
){
self
.
stop
(
resp
)
self
.
stop
(
resp
)
// console.log('***** JOB SUCCESSFULLY DONE *****\n');
// console.log('***** JOB SUCCESSFULLY DONE *****\n');
...
...
version.json
View file @
152f6d53
{
{
"version"
:
"1.2.3"
,
"version"
:
"1.2.3"
,
"build"
:
"20200
306
1200"
"build"
:
"20200
411
1200"
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment