aboutsummaryrefslogtreecommitdiffstats
path: root/grokmirror
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-07-28 11:23:24 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2021-07-28 11:23:24 -0400
commit77c62d68b841f295b2ab72e15e59821d2e4c4473 (patch)
treecb2e6d4068abfaaac772dd5e804009fba056a179 /grokmirror
parent4293e802ca9bd45727f5cb81671d2316d4f53636 (diff)
downloadgrokmirror-77c62d68b841f295b2ab72e15e59821d2e4c4473.tar.gz
Fix missed post_work_hook invocation
There are two places where we can be done, depending on the invocation, so there was a situation where the post_work hook wasn't firing on completed work. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'grokmirror')
-rwxr-xr-xgrokmirror/pull.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/grokmirror/pull.py b/grokmirror/pull.py
index 7472298..d205b69 100755
--- a/grokmirror/pull.py
+++ b/grokmirror/pull.py
@@ -1282,6 +1282,8 @@ def pull_mirror(config, nomtime=False, forcepurge=False, runonce=False):
if not runonce and not len(mws) and q_todo.empty() and q_pull.empty() and time.time() - lastrun >= refresh:
if done:
update_manifest(config, done)
+ if post_work_hook:
+ run_post_work_complete_hook(config)
mw = mp.Process(target=manifest_worker, args=(config, q_mani, nomtime))
nomtime = False
mw.daemon = True