Executando verificação de segurança...
1

Esse job é executa em um command que executa de hora em hora:

$courses = FreeCourse::where('status', FreeCourse::STATUS_IN_PROGRESS)->where('auto_aprovar_reprovar', true)->get();
foreach ($courses as $course) {
    ProcessCloseCourse::dispatch($course, false);
}

SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]New transaction is not allowed because there are other threads running in the session. (Connection: sqlsrv, SQL: select top 1 * from [APP].[sig].[aluno_cursos_livres] where exists (select * from [Lyceum].[dbo].[LY_FL_ALUNO] where [APP].[sig].[aluno_cursos_livres].[aluno] = [Lyceum].[dbo].[LY_FL_ALUNO].[ALUNO] and [FL_FIELD_15] = '') and [curso_livre_id] = '' and [status] <> 2)
Essa é toda a informação que peguei.
Eu só entendi que o erro esta no select que pega o aluno, mas ele em si não tem nenhum problema.

Carregando publicação patrocinada...