mirror of
https://github.com/hanzoai/insights.git
synced 2026-11-02 14:32:45 +00:00
Mechanically re-derived: bin/debrand runs over a fresh import of posthog/posthog@fa1a9a60d4 (2026-08-06). The pipeline (.hanzo/workflows), the Dockerfiles and bin/docker* entrypoints, compose files, LLM.md and the squashed initial migration are restored from the shipped tree, same as the previous import. The prune's import-closure guard kept 21 products the new core now imports; dropping them is a refactor now, recorded rather than forced.
25 lines
791 B
Python
25 lines
791 B
Python
from celery import shared_task
|
|
from structlog import get_logger
|
|
|
|
from insights.scoping_audit import skip_team_scope_audit
|
|
|
|
from products.skills.backend.api.community_skill_sync import sync_community_skills_from_github
|
|
|
|
logger = get_logger(__name__)
|
|
|
|
|
|
@shared_task(ignore_result=True)
|
|
@skip_team_scope_audit
|
|
def sync_community_skills() -> None:
|
|
"""Reconcile the local community-skills catalog with the Insights/community-skills repo.
|
|
|
|
Operates on the instance-global CommunitySkill catalog (no team scope), so the team-scope
|
|
audit is intentionally skipped.
|
|
"""
|
|
try:
|
|
result = sync_community_skills_from_github()
|
|
except Exception:
|
|
logger.exception("community_skills_sync_failed")
|
|
raise
|
|
logger.info("community_skills_sync_complete", **result)
|