Skip to content

Make dynamic register tasks available before schduler start - #8

Open
aliyoge wants to merge 2 commits into
rfyiamcool:masterfrom
aliyoge:master
Open

Make dynamic register tasks available before schduler start#8
aliyoge wants to merge 2 commits into
rfyiamcool:masterfrom
aliyoge:master

Conversation

@aliyoge

@aliyoge aliyoge commented Jan 12, 2021

Copy link
Copy Markdown

如果在cron.Start()之前DynamicRegisterJobModel,会导致JobModel被注册两次。
我觉得应该避免这个问题。

func main() {
	handleClean()

	// dynamic add
	handleBackup()

	go start()

	select {}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant