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
94264cb8
Commit
94264cb8
authored
Nov 4, 2021
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Add a description to all commands
This is visible when running "./bin/console"
parent
21e7ceb3
Branches
Branches containing commit
Tags
v0.1.20
Tags containing commit
No related merge requests found
Pipeline
#60142
failed
Nov 4, 2021
Stage: test
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Queue/RestartCommand.php
+5
-0
5 additions, 0 deletions
src/Queue/RestartCommand.php
src/Queue/WorkCommand.php
+1
-0
1 addition, 0 deletions
src/Queue/WorkCommand.php
with
6 additions
and
0 deletions
src/Queue/RestartCommand.php
+
5
−
0
View file @
94264cb8
...
@@ -17,6 +17,11 @@ class RestartCommand extends Command implements LoggerAwareInterface
...
@@ -17,6 +17,11 @@ class RestartCommand extends Command implements LoggerAwareInterface
protected
static
$defaultName
=
'dbp:relay:core:queue:restart'
;
protected
static
$defaultName
=
'dbp:relay:core:queue:restart'
;
protected
function
configure
()
{
$this
->
setDescription
(
'Stop all workers once they are done with the current task'
);
}
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
protected
function
execute
(
InputInterface
$input
,
OutputInterface
$output
)
{
{
// Now run the real messenger:stop-workers command
// Now run the real messenger:stop-workers command
...
...
This diff is collapsed.
Click to expand it.
src/Queue/WorkCommand.php
+
1
−
0
View file @
94264cb8
...
@@ -37,6 +37,7 @@ class WorkCommand extends Command implements LoggerAwareInterface
...
@@ -37,6 +37,7 @@ class WorkCommand extends Command implements LoggerAwareInterface
protected
function
configure
():
void
protected
function
configure
():
void
{
{
$this
->
setDescription
(
'Start a worker which processes queued tasks'
);
$this
->
addArgument
(
'worker-name'
,
InputArgument
::
REQUIRED
,
'A unique and stable worker name'
);
$this
->
addArgument
(
'worker-name'
,
InputArgument
::
REQUIRED
,
'A unique and stable worker name'
);
}
}
...
...
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