Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
queue_ui
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
queue_ui
Merge requests
!37
chore: remove DrushBatchContext
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
chore: remove DrushBatchContext
issue/queue_ui-3408796:3408796-drushbatchcontext-was-removed
into
3.2.x
Overview
0
Commits
2
Pipelines
5
Changes
2
Merged
Eduard Reñé Claramunt
requested to merge
issue/queue_ui-3408796:3408796-drushbatchcontext-was-removed
into
3.2.x
1 year ago
Overview
0
Commits
2
Pipelines
5
Changes
2
Expand
Closes
#3408796
0
0
Merge request reports
Compare
3.2.x
version 3
7cf0d423
1 year ago
version 2
7cf0d423
1 year ago
version 1
95803a6c
1 year ago
3.2.x (base)
and
latest version
latest version
876fd8d4
2 commits,
1 year ago
version 3
7cf0d423
2 commits,
1 year ago
version 2
7cf0d423
2 commits,
1 year ago
version 1
95803a6c
1 commit,
1 year ago
2 files
+
8
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/QueueUIBatch.php
+
5
−
5
Options
@@ -89,13 +89,13 @@ class QueueUIBatch implements QueueUIBatchInterface {
/**
* {@inheritdoc}
*/
public
function
step
(
string
$queue
N
ame
,
&
$context
)
{
public
function
step
(
string
$queue
_n
ame
,
array
&
$context
)
{
// Make sure every queue exists. There is no harm in trying to recreate
// an existing queue.
$info
=
$this
->
queueManager
->
getDefinition
(
$queue
N
ame
);
$this
->
queueFactory
->
get
(
$queue
N
ame
)
->
createQueue
();
$queue_worker
=
$this
->
queueManager
->
createInstance
(
$queue
N
ame
);
$queue
=
$this
->
queueFactory
->
get
(
$queue
N
ame
);
$info
=
$this
->
queueManager
->
getDefinition
(
$queue
_n
ame
);
$this
->
queueFactory
->
get
(
$queue
_n
ame
)
->
createQueue
();
$queue_worker
=
$this
->
queueManager
->
createInstance
(
$queue
_n
ame
);
$queue
=
$this
->
queueFactory
->
get
(
$queue
_n
ame
);
$num_of_items
=
$queue
->
numberOfItems
();
if
(
!
array_key_exists
(
'num_of_total_items'
,
$context
[
'sandbox'
])
Loading