Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/backfill_post_keymen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,16 @@
import asyncio
import json
import os
import sys
from collections import Counter
from pathlib import Path

import asyncpg

REPOSITORY_ROOT = Path(__file__).resolve().parents[1]
if str(REPOSITORY_ROOT) not in sys.path:
sys.path.insert(0, str(REPOSITORY_ROOT))

from backend.app.config import load_settings
from backend.app.keyman_ingestion import ingest_post_keymen
from backend.app.main import (
Expand Down
6 changes: 6 additions & 0 deletions scripts/requeue_failed_post_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@

import argparse
import asyncio
import sys
from pathlib import Path

import asyncpg
import redis.asyncio as redis

REPOSITORY_ROOT = Path(__file__).resolve().parents[1]
if str(REPOSITORY_ROOT) not in sys.path:
sys.path.insert(0, str(REPOSITORY_ROOT))

from backend.app.config import load_settings
from backend.app.post_content_queue import (
publish_post_content_event,
Expand Down
Loading