Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dynamic register tasks available before schduler start #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aliyoge
Copy link

@aliyoge aliyoge commented Jan 12, 2021

如果在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.

None yet

1 participant