# HG changeset patch # User Marcin Kuzminski # Date 2019-12-19 11:43:57 # Node ID bf25ce629766bea0e8b8f0e856aafbdc2b19aca3 # Parent 6a12088f869d6b92bc8f686375c45d710b3e0cc5 automation: moved update groups task into celery task diff --git a/rhodecode/lib/celerylib/tasks.py b/rhodecode/lib/celerylib/tasks.py --- a/rhodecode/lib/celerylib/tasks.py +++ b/rhodecode/lib/celerylib/tasks.py @@ -341,3 +341,9 @@ def beat_check(*args, **kwargs): log = get_logger(beat_check) log.info('Got args: %r and kwargs %r', args, kwargs) return time.time() + + +@async_task(ignore_result=True) +def sync_repo_groups_last_update(*args, **kwargs): + from rhodecode.model.repo_group import RepoGroupModel + return RepoGroupModel().update_commit_cache()