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
7d3fd30a
Commit
7d3fd30a
authored
May 03, 2017
by
project
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
020611b5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
job-registry.js
lib/mems/job-registry.js
+1
-1
test_jobexecute.js
test/test_jobexecute.js
+9
-2
No files found.
lib/mems/job-registry.js
View file @
7d3fd30a
var
redis
=
require
(
'redis'
);
const
PREFIX
=
'bs:jobs'
;
const
PREFIX
=
'bs:
regis:
jobs'
;
module
.
exports
.
create
=
function
(
cfg
)
{
...
...
test/test_jobexecute.js
View file @
7d3fd30a
...
...
@@ -3,13 +3,16 @@ var amqp_cfg = ctx.config.amqp;
var
QueueCaller
=
ctx
.
getLib
(
'lib/amqp/queuecaller'
);
var
qc
=
new
QueueCaller
({
'url'
:
'amqp://bigmaster.igridproject.info'
,
'name'
:
'bs_jobs_queue'
});
var
amp
=
'amqp://lab1.igridproject.info'
;
var
qc
=
new
QueueCaller
({
'url'
:
amp
,
'name'
:
'bs_jobs_queue'
});
var
cmd
=
{
'object_type'
:
'job_execute'
,
'source'
:
'http_listener'
,
'jobId'
:
'job0
3
'
,
'jobId'
:
'job0
1
'
,
'option'
:
{},
'input_data'
:
{
'type'
:
'bsdata'
,
...
...
@@ -22,3 +25,7 @@ var cmd = {
qc
.
send
(
cmd
);
setTimeout
(
function
(){
qc
.
close
()
},
500
)
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