harbor/src/pkg/task
Chlins Zhang f21b1481bb
refactor: refactor the old goroutine execution sweep (#18361)
refactor: refactor the old goroutine execution sweep to global execution sweep job

1. Delete the old goroutine execution sweeper when create execution.(in the case of high concurrency can cause goroutine backlogs, affect the performance of core)
2. Introduce the new way to sweep executions, a global scheduled job will take the work.

Signed-off-by: chlins <chenyuzh@vmware.com>
2023-03-21 10:10:55 +08:00
..
dao Update the execution status after tasks stopped (#17875) 2022-12-01 21:17:35 +08:00
execution.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
execution_test.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
hook.go lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
hook_test.go lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00
mock.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
mock_execution_dao_test.go feat: upgrade mockery version (#18332) 2023-03-11 08:16:11 +08:00
mock_jobservice_client_test.go feat: upgrade mockery version (#18332) 2023-03-11 08:16:11 +08:00
mock_sweep_manager_test.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
mock_task_dao_test.go feat: upgrade mockery version (#18332) 2023-03-11 08:16:11 +08:00
mock_task_manager_test.go feat: upgrade mockery version (#18332) 2023-03-11 08:16:11 +08:00
model.go feat(schedule):sync schedules in db to js datastore 2021-09-07 08:33:01 +08:00
registry.go Fix duplicate execution record issue 2021-05-12 15:40:52 +08:00
registry_test.go Refactor the replication execution 2020-11-23 14:24:10 +08:00
sweep_job.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
sweep_job_test.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
sweep_manager.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
sweep_manager_test.go refactor: refactor the old goroutine execution sweep (#18361) 2023-03-21 10:10:55 +08:00
task.go Get job log by job_id in worker (#18261) 2023-03-06 13:19:10 +08:00
task_test.go lint: sort imports (#17131) 2022-07-20 11:33:08 +08:00