Skip to content

Refine global mutable state in scheduler backend framework #509

@kangclzjc

Description

@kangclzjc

What you would like to be added?

Replace global variables in scheduler backend framework manager

Why is this needed?

Scheduler backend framework use global variables like below. We should replace these otherwise it's difficult to test.

var (
	backends       map[string]scheduler.Backend
	defaultBackend scheduler.Backend
)

Metadata

Metadata

Assignees

Labels

area/qualityOutput qualification (tests, checks, scans, automation in general, etc.) relatedarea/testIssue/PR is for correcting, enhancing test or its related frameworksenhancementNew feature or request

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions