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

周期性任务enable逻辑 #70

Open
a358003542 opened this issue Jun 13, 2018 · 0 comments
Open

周期性任务enable逻辑 #70

a358003542 opened this issue Jun 13, 2018 · 0 comments

Comments

@a358003542
Copy link

a358003542 commented Jun 13, 2018

我详细研究了源码,发现 JobInstance models 的 enabled 应该 default = -1 表示默认不开启,然后其他地方没有问题。

哦,还有 job_periodic 模板的

                {% if job_instance.enabled %}

最好改成

                {% if job_instance.enabled == 0 %}

这个前端展示你决定了,不改动加个提示也可以的。就说明现在是enabled了。

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

No branches or pull requests

1 participant