Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dbp-relay-core-bundle
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Relay API Gateway
dbp-relay-core-bundle
Commits
21e7ceb3
Commit
21e7ceb3
authored
Nov 4, 2021
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
CLI naming: add core to all core commands
parent
119de45f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#60139
failed
Nov 4, 2021
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/queue.md
+3
-3
3 additions, 3 deletions
docs/queue.md
src/Queue/RestartCommand.php
+1
-1
1 addition, 1 deletion
src/Queue/RestartCommand.php
src/Queue/WorkCommand.php
+1
-1
1 addition, 1 deletion
src/Queue/WorkCommand.php
with
5 additions
and
5 deletions
docs/queue.md
+
3
−
3
View file @
21e7ceb3
...
...
@@ -29,7 +29,7 @@ queue_dsn: 'redis://localhost:6379'
Start a worker using
```
bash
./bin/console dbp:relay:queue:work my-worker-01
./bin/console dbp:relay:
core:
queue:work my-worker-01
```
It will automatically exit after a specific amount 0f time or after a specific
...
...
@@ -47,7 +47,7 @@ Note:
After deployment run
```
bash
./bin/console dbp:relay:queue:restart
./bin/console dbp:relay:
core:
queue:restart
```
This will signal the workers to exit after the current task, which means they
...
...
@@ -64,7 +64,7 @@ sudo apt-get install supervisor
```
ini
;/etc/supervisor/conf.d/queue-worker.conf
[program:queue-work]
command
=
php /path/to/your/app/bin/console dbp:relay:queue:work "%(program_name)s_%(process_num)02d"
command
=
php /path/to/your/app/bin/console dbp:relay:
core:
queue:work "%(program_name)s_%(process_num)02d"
user
=
user
numprocs
=
2
startsecs
=
0
...
...
This diff is collapsed.
Click to expand it.
src/Queue/RestartCommand.php
+
1
−
1
View file @
21e7ceb3
...
...
@@ -15,7 +15,7 @@ class RestartCommand extends Command implements LoggerAwareInterface
{
use
LoggerAwareTrait
;
protected
static
$defaultName
=
'dbp:relay:queue:restart'
;
protected
static
$defaultName
=
'dbp:relay:
core:
queue:restart'
;
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
...
...
This diff is collapsed.
Click to expand it.
src/Queue/WorkCommand.php
+
1
−
1
View file @
21e7ceb3
...
...
@@ -22,7 +22,7 @@ class WorkCommand extends Command implements LoggerAwareInterface
{
use
LoggerAwareTrait
;
protected
static
$defaultName
=
'dbp:relay:queue:work'
;
protected
static
$defaultName
=
'dbp:relay:
core:
queue:work'
;
/**
* @var TransportFactoryDecorator
...
...
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
sign in
to comment