Enqueue background jobs to run async in batches

Improve migration to run a single update statement per batch,
and update multiple values in one statement.
122 jobs for migrate_promoted_epics_discussion_ids in 69 minutes and 48 seconds (queued for 27 seconds)
Status Job ID Name Coverage
  Build
manual #255230695
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #255230714
gitlab-org
compile-assets pull-cache

00:07:54

passed #255230729
gitlab-org
retrieve-tests-metadata

00:00:27

passed #255230722
gitlab-org
setup-test-env

00:06:49

 
  Test
passed #255231039
docker gitlab-org
build-qa-image

00:05:20

passed #255230809
allowed to fail
code_quality

00:10:37

passed #255231045
gitlab-org
danger-review

00:01:52

passed #255230972
gitlab-org
db:check-schema-pg

00:02:30

passed #255230970
gitlab-org
db:migrate:reset-pg

00:05:27

passed #255230974
gitlab-org
db:rollback-pg

00:03:01

passed #255231038
gitlab-org
db:rollback-pg-geo

00:03:48

passed #255230816
allowed to fail
dependency_scanning

00:06:20

passed #255230734
gitlab-org
docs lint

00:02:39

passed #255230969
gitlab-org
downtime_check

00:02:48

passed #255231058
gitlab-org
ee-files-location-check

00:03:08

passed #255231060
gitlab-org
ee-specific-lines-check

00:03:24

passed #255230738
gitlab-org docker
gitlab:assets:compile pull-cache

00:20:27

passed #255230975
gitlab-org
gitlab:setup-pg

00:04:11

passed #255231053
gitlab-org
gitlab_git_test

00:00:31

passed #255230746
gitlab-org
jest

00:17:09

passed #255230743
gitlab-org
karma

00:13:12

69.39%
passed #255231062
gitlab-org
lint-ci-gitlab

00:00:34

passed #255230807
gitlab-org
memory-on-boot

00:03:39

passed #255230804
gitlab-org
memory-static

00:03:23

passed #255230973
gitlab-org
migration:path-pg

00:05:04

passed #255231032
gitlab-org
migration:upgrade-pg-ce-to-ee

00:05:12

passed #255230795
gitlab-org
qa-frontend-node:10

00:15:31

passed #255230784
gitlab-org
qa-frontend-node:8

00:12:28

passed #255230801
gitlab-org allowed to fail
qa-frontend-node:latest

00:18:34

passed #255230754
gitlab-org
qa:internal

00:02:46

passed #255230764
gitlab-org
qa:selectors

00:03:00

passed #255231044
allowed to fail manual
review-build-cng

00:28:41

passed #255231018
gitlab-org
rspec geo pg ee 1/3

00:08:22

passed #255231019
gitlab-org
rspec geo pg ee 2/3

00:07:26

passed #255231020
gitlab-org
rspec geo pg ee 3/3

00:11:32

passed #255231023
gitlab-org
rspec geo pg-10 ee 1/3

00:08:59

passed #255231024
gitlab-org
rspec geo pg-10 ee 2/3

00:07:27

passed #255231026
gitlab-org
rspec geo pg-10 ee 3/3

00:11:21

passed #255230916
gitlab-org
rspec integration pg 1/6

00:19:11

passed #255230919
gitlab-org
rspec integration pg 2/6

00:20:44

passed #255230921
gitlab-org
rspec integration pg 3/6

00:21:26

passed #255230922
gitlab-org
rspec integration pg 4/6

00:22:34

passed #255230924
gitlab-org
rspec integration pg 5/6

00:21:59

passed #255230926
gitlab-org
rspec integration pg 6/6

00:19:44

passed #255230992
gitlab-org
rspec integration pg ee 1/3

00:13:57

passed #255230996
gitlab-org
rspec integration pg ee 2/3

00:13:19

passed #255230999
gitlab-org
rspec integration pg ee 3/3

00:12:36

passed #255230927
gitlab-org
rspec system pg 1/24

00:14:48

passed #255230943
gitlab-org
rspec system pg 10/24

00:13:58

passed #255230944
gitlab-org
rspec system pg 11/24

00:12:58

passed #255230946
gitlab-org
rspec system pg 12/24

00:13:16

passed #255230949
gitlab-org
rspec system pg 13/24

00:14:55

passed #255230950
gitlab-org
rspec system pg 14/24

00:14:55

passed #255230952
gitlab-org
rspec system pg 15/24

00:14:57

passed #255230953
gitlab-org
rspec system pg 16/24

00:13:55

passed #255230954
gitlab-org
rspec system pg 17/24

00:12:06

passed #255230955
gitlab-org
rspec system pg 18/24

00:12:23

passed #255230956
gitlab-org
rspec system pg 19/24

00:15:34

passed #255230929
gitlab-org
rspec system pg 2/24

00:13:46

passed #255230958
gitlab-org
rspec system pg 20/24

00:13:59

passed #255230959
gitlab-org
rspec system pg 21/24

00:12:57

passed #255230960
gitlab-org
rspec system pg 22/24

00:12:43

passed #255230961
gitlab-org
rspec system pg 23/24

00:13:28

passed #255230963
gitlab-org
rspec system pg 24/24

00:15:09

passed #255230930
gitlab-org
rspec system pg 3/24

00:12:49

passed #255230932
gitlab-org
rspec system pg 4/24

00:14:56

passed #255230933
gitlab-org
rspec system pg 5/24

00:12:29

passed #255230936
gitlab-org
rspec system pg 6/24

00:14:41

passed #255230938
gitlab-org
rspec system pg 7/24

00:14:01

passed #255230939
gitlab-org
rspec system pg 8/24

00:12:05

passed #255230942
gitlab-org
rspec system pg 9/24

00:13:40

passed #255231001
gitlab-org
rspec system pg ee 1/5

00:15:16

passed #255231002
gitlab-org
rspec system pg ee 2/5

00:14:15

passed #255231003
gitlab-org
rspec system pg ee 3/5

00:12:52

passed #255231004
gitlab-org
rspec system pg ee 4/5

00:14:01

passed #255231009
gitlab-org
rspec system pg ee 5/5

00:15:32

passed #255230830
gitlab-org
rspec unit pg 1/20

00:11:50

passed #255230883
gitlab-org
rspec unit pg 10/20

00:15:18

passed #255230887
gitlab-org
rspec unit pg 11/20

00:16:24

passed #255230891
gitlab-org
rspec unit pg 12/20

00:18:57

passed #255230899
gitlab-org
rspec unit pg 13/20

00:16:59

passed #255230901
gitlab-org
rspec unit pg 14/20

00:15:49

passed #255230903
gitlab-org
rspec unit pg 15/20

00:17:34

passed #255230904
gitlab-org
rspec unit pg 16/20

00:20:27

passed #255230907
gitlab-org
rspec unit pg 17/20

00:18:02

passed #255230909
gitlab-org
rspec unit pg 18/20

00:19:22

passed #255230912
gitlab-org
rspec unit pg 19/20

00:18:13

passed #255230834
gitlab-org
rspec unit pg 2/20

00:13:44

passed #255230914
gitlab-org
rspec unit pg 20/20

00:16:00

passed #255230845
gitlab-org
rspec unit pg 3/20

00:14:23

passed #255230855
gitlab-org
rspec unit pg 4/20

00:15:11

passed #255230861
gitlab-org
rspec unit pg 5/20

00:15:12

passed #255230867
gitlab-org
rspec unit pg 6/20

00:13:18

passed #255230871
gitlab-org
rspec unit pg 7/20

00:17:28

passed #255230877
gitlab-org
rspec unit pg 8/20

00:15:06

passed #255230880
gitlab-org
rspec unit pg 9/20

00:15:14

passed #255230976
gitlab-org
rspec unit pg ee 1/7

00:07:52

passed #255230978
gitlab-org
rspec unit pg ee 2/7

00:14:50

passed #255230980
gitlab-org
rspec unit pg ee 3/7

00:13:45

passed #255230983
gitlab-org
rspec unit pg ee 4/7

00:15:19

passed #255230985
gitlab-org
rspec unit pg ee 5/7

00:12:47

passed #255230987
gitlab-org
rspec unit pg ee 6/7

00:15:04

passed #255230988
gitlab-org
rspec unit pg ee 7/7

00:17:04

passed #255230964
gitlab-org
rspec-fast-spec-helper

00:03:17

passed #255230814
allowed to fail
sast

00:08:34

passed #255230966
gitlab-org
static-analysis

00:30:55

 
  Review
manual #255231065
allowed to fail manual
package-and-qa
passed #255231067
gitlab-org allowed to fail
review-deploy

00:02:49

manual #255231084
gitlab-org allowed to fail manual
review-stop
 
  Qa
passed #255231123
docker gitlab-org allowed to fail
review-performance

00:03:02

manual #255231095
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #255231099
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #255231106
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #255231110
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #255231119
docker gitlab-org allowed to fail manual
review-qa-all 5/5
passed #255231093
docker gitlab-org allowed to fail
review-qa-smoke

00:05:12

 
  Post Test
passed #255231130
gitlab-org
coverage

00:03:56

96.66%
passed #255231133
gitlab-org allowed to fail
flaky-examples-check

00:02:05

passed #255231129
gitlab-org
jsdoc

00:01:13

passed #255231127
gitlab-org
lint:javascript:report

00:00:49

manual #255231131
gitlab-org allowed to fail manual
parallel-spec-reports
 
  Post Cleanup
manual #255231134
gitlab-org allowed to fail manual
review-docs-cleanup