Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4fa822ae
Commit
4fa822ae
authored
Jun 30, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code examples in background migrations docs
parent
93947307
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
doc/development/background_migrations.md
doc/development/background_migrations.md
+2
-4
No files found.
doc/development/background_migrations.md
View file @
4fa822ae
...
...
@@ -56,8 +56,7 @@ Usually it's better to enqueue jobs in bulk, for this you can use
```
ruby
BackgroundMigrationWorker
.
perform_bulk
(
[[
'BackgroundMigrationClassName'
,
[
1
]],
[
'BackgroundMigrationClassName'
,
[
2
]],
...
]
[
'BackgroundMigrationClassName'
,
[
2
]]]
)
```
...
...
@@ -73,8 +72,7 @@ If you would like to schedule jobs in bulk with a delay, you can use
```
ruby
jobs
=
[[
'BackgroundMigrationClassName'
,
[
1
]],
[
'BackgroundMigrationClassName'
,
[
2
]],
...
]
[
'BackgroundMigrationClassName'
,
[
2
]]]
BackgroundMigrationWorker
.
perform_bulk_in
(
5
.
minutes
,
jobs
)
```
...
...
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