summaryrefslogtreecommitdiff
path: root/spec/workers/namespaces
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-08-031-2/+2
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-243-3/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-011-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-311-0/+11
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-231-0/+15
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-03-092-2/+2
|
* Removes update_statistics_namespace feature flagMayra Cabrera2019-08-022-21/+0
| | | | | | | | After measuring the impact of the namespace storage on https://gitlab.com/gitlab-org/gitlab-ce/issues/64092. It was decided that it's performant enough. So we can freely remove the feature flag Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/64092
* Implements lease_release on NamespaceAggregationMayra Cabrera2019-07-041-14/+25
| | | | | | | Sets lease_release? to false to prevent the job to be re-executed more often than lease timeout Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64079
* Includes logic to persist namespace statisticsMayra Cabrera2019-07-023-0/+189
- Add two new ActiveRecord models: - RootNamespaceStoragestatistics will persist root namespace statistics - NamespaceAggregationSchedule will save information when a new update to the namespace statistics needs to be scheduled - Inject into UpdateProjectStatistics concern a new callback that will call an async job to insert a new row onto NamespaceAggregationSchedule table - When a new row is inserted a new job is scheduled. This job will update call an specific service to update the statistics and after that it will delete thee aggregated scheduled row - The RefresherServices makes heavy use of arel to build composable queries to update Namespace::RootStorageStatistics attributes. - Add an extra worker to traverse pending rows on NAmespace::AggregationSchedule table and schedule a worker for each one of this rows. - Add an extra worker to traverse pending rows on NAmespace::AggregationSchedule table and schedule a worker for each one of this rows