Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
enq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
silver-platter
enq
Commits
8a68f26f
Commit
8a68f26f
authored
4 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Rewrite shell snippets for clarity
parent
732ab5b1
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-8
8 additions, 8 deletions
README.md
with
8 additions
and
8 deletions
README.md
+
8
−
8
View file @
8a68f26f
...
@@ -96,7 +96,7 @@ We need to start the queue engine and tell it which database to use:
...
@@ -96,7 +96,7 @@ We need to start the queue engine and tell it which database to use:
Then we can start the worker and have it talk to the engine:
Then we can start the worker and have it talk to the engine:
```
shell
```
shell
#
enq worker --server localhost:3733
enq worker
--server
localhost:3733
```
```
Run each of these commands in its own terminal as they are daemons
Run each of these commands in its own terminal as they are daemons
...
@@ -133,7 +133,7 @@ Save the above to *task.json*. Now it's possible to submit this task
...
@@ -133,7 +133,7 @@ Save the above to *task.json*. Now it's possible to submit this task
to the queue:
to the queue:
```
shell
```
shell
#
enq submit --server localhost:3733 < task.json
enq submit
--server
localhost:3733 < task.json
```
```
The worker logs should show the
*process-user-data*
script being
The worker logs should show the
*process-user-data*
script being
...
@@ -202,7 +202,7 @@ will ensure the correct order of execution. Save the above to
...
@@ -202,7 +202,7 @@ will ensure the correct order of execution. Save the above to
*tree.json*
and submit it with:
*tree.json*
and submit it with:
```
shell
```
shell
#
enq submit --server localhost:3733 < tree.json
enq submit
--server
localhost:3733 < tree.json
```
```
Again, worker logs should show the two tasks being executed in
Again, worker logs should show the two tasks being executed in
...
@@ -225,12 +225,12 @@ We can start the various components with the following commands
...
@@ -225,12 +225,12 @@ We can start the various components with the following commands
(again, run each one in a separate terminal):
(again, run each one in a separate terminal):
```
shell
```
shell
#
enq server --db test1.db --shard host1 --addr :3733 \
enq server
--db
test1.db
--shard
host1
--addr
:3733
\
--topology
static:1
=
localhost:3733,2
=
localhost:3734
--topology
static:1
=
localhost:3733,2
=
localhost:3734
#
enq server --db test2.db --shard host2 --addr :3734 \
enq server
--db
test2.db
--shard
host2
--addr
:3734
\
--topology
static:1
=
localhost:3733,2
=
localhost:3734
--topology
static:1
=
localhost:3733,2
=
localhost:3734
#
enq worker --id worker1 --server localhost:3733
enq worker
--id
worker1
--server
localhost:3733
#
enq worker --id worker2 --server localhost:3734
enq worker
--id
worker2
--server
localhost:3734
```
```
Suppose that we now want to save user data from all shards:
Suppose that we now want to save user data from all shards:
...
@@ -292,7 +292,7 @@ You can send the submission request to any instance of the
...
@@ -292,7 +292,7 @@ You can send the submission request to any instance of the
engine. Save the above to
*tree2.json*
and submit it with:
engine. Save the above to
*tree2.json*
and submit it with:
```
shell
```
shell
#
enq submit --server localhost:3734 < tree2.json
enq submit
--server
localhost:3734 < tree2.json
```
```
All tasks should execute in order on the expected workers.
All tasks should execute in order on the expected workers.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment