Merge pull request #820 from escapade-mckv/redis-import-fix

Redis import fix
This commit is contained in:
Bobbie 2025-06-24 14:35:47 +05:30 committed by GitHub
commit 299f5c6482
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 27 additions and 1 deletions

View File

@ -17,6 +17,7 @@ ENV WORKERS=33
ENV THREADS=2 ENV THREADS=2
ENV WORKER_CONNECTIONS=2000 ENV WORKER_CONNECTIONS=2000
ENV PYTHONPATH=/app
EXPOSE 8000 EXPOSE 8000
# Gunicorn configuration # Gunicorn configuration

View File

@ -3,11 +3,11 @@ import logging
import os import os
from datetime import datetime from datetime import datetime
from typing import Dict, List, Optional from typing import Dict, List, Optional
import sys
from services import redis from services import redis
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
class FeatureFlagManager: class FeatureFlagManager:
def __init__(self): def __init__(self):
"""Initialize with existing Redis service""" """Initialize with existing Redis service"""

View File

@ -0,0 +1,25 @@
import { isFlagEnabled } from '@/lib/feature-flags';
import { Metadata } from 'next';
import { redirect } from 'next/navigation';
export const metadata: Metadata = {
title: 'Credentials | Kortix Suna',
description: 'Create and manage credentials to your services',
openGraph: {
title: 'Credentials | Kortix Suna',
description: 'Create and manage credentials to your services',
type: 'website',
},
};
export default async function CredentialsLayout({
children,
}: {
children: React.ReactNode;
}) {
const customAgentsEnabled = await isFlagEnabled('custom_agents');
if (!customAgentsEnabled) {
redirect('/dashboard');
}
return <>{children}</>;
}