fix: bidirectional forwardRef for AiRuntimeModule <-> AiJobModule
Both sides of the circular dependency need forwardRef(). AiJobModule's import of AiRuntimeModule also wrapped. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
8776f1e7ca
commit
89ad00b4ee
@ -1,4 +1,4 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { Module, forwardRef } from '@nestjs/common';
|
||||
import { PrismaModule } from '../../infrastructure/database/prisma.module';
|
||||
import { OutboxRepository } from '../../infrastructure/outbox/outbox.repository';
|
||||
import { AiRuntimeModule } from '../ai-runtime/ai-runtime.module';
|
||||
@ -48,7 +48,7 @@ import { FeynmanObservabilityService } from './feynman-observability.service';
|
||||
import { AppConfigModule } from '../config/config.module';
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule, AiRuntimeModule, AiModule, AppConfigModule],
|
||||
imports: [PrismaModule, forwardRef(() => AiRuntimeModule), AiModule, AppConfigModule],
|
||||
controllers: [AiJobController, AiJobAdminController],
|
||||
providers: [
|
||||
AiJobStateMachine,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user