不需要重新 运行 doit 任务管道
Unneeded re-run of doit task pipeline
我正在使用 doit 来自动化我的数据分析管道,如 https://blogs.aalto.fi/marijn/2016/02/25/doit-a-python-alternative-to-make/ 中所述。不幸的是,尽管后面步骤的 file_deps 已经满足,但 doit 总是想从第 1 步重新 运行 整个管道。我如何找出导致 doit 重新运行 整个管道的原因?例如。配置错误的依赖项,dodo.py?
中的更改
示例代码会有所帮助。在不知道到底发生了什么的情况下,可能很难提供帮助。但为了引导您朝着正确的方向前进,这里有一些建议;
doit 具有 strace 功能,它有一些注意事项,但可能会有所帮助,http://pydoit.org/cmd_other.html?highlight=strace#strace。
默认情况下,如果您的 dodo.py 文件已更改,doit 将不会重新运行任务。我会检查您的代码,看看您是否已将 dodo.py 文件作为 file_deps 添加到某处; http://pydoit.org/faq.html#dodo-py-file-itself-should-be-a-file-dep-for-all-tasks
如果您仍有问题,请查看用户组并 post 那里。爱德华似乎反应很快。
我正在使用 doit 来自动化我的数据分析管道,如 https://blogs.aalto.fi/marijn/2016/02/25/doit-a-python-alternative-to-make/ 中所述。不幸的是,尽管后面步骤的 file_deps 已经满足,但 doit 总是想从第 1 步重新 运行 整个管道。我如何找出导致 doit 重新运行 整个管道的原因?例如。配置错误的依赖项,dodo.py?
中的更改示例代码会有所帮助。在不知道到底发生了什么的情况下,可能很难提供帮助。但为了引导您朝着正确的方向前进,这里有一些建议;
doit 具有 strace 功能,它有一些注意事项,但可能会有所帮助,http://pydoit.org/cmd_other.html?highlight=strace#strace。
默认情况下,如果您的 dodo.py 文件已更改,doit 将不会重新运行任务。我会检查您的代码,看看您是否已将 dodo.py 文件作为 file_deps 添加到某处; http://pydoit.org/faq.html#dodo-py-file-itself-should-be-a-file-dep-for-all-tasks
如果您仍有问题,请查看用户组并 post 那里。爱德华似乎反应很快。