JobIntegracaoLeanSaida.ProcessarFinalizacoesPendentes

// Id: #9215391
using Inpart.Integracao.GerenciadorJobs.Services;

var jobIntegracaoLeanSaida = Activate<JobIntegracaoLeanSaida>();
await jobIntegracaoLeanSaida.ProcessarFinalizacoesPendentes();

Parameters

CurrentCulture
""
RecurringJobId
"lean-finalizacao-cotacoes-opme"
Time
1785879363

State

08/04/2026 21:49:34 (+5.744s) Failed

An exception occurred during performance of the job.

Microsoft.Data.SqlClient.SqlException (7495b0a7876a.staging:1)

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)

Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 40 - Could not open a connection to SQL Server)
   at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
   at Microsoft.Data.SqlClient.SqlConnection.InternalOpenAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
   at Dapper.SqlMapper.QueryAsync[T](IDbConnection cnn, Type effectiveType, CommandDefinition command) in /_/Dapper/SqlMapper.Async.cs:line 433
   at Inpart.Integracao.Lean.Persistencia.LeanCotacaoRepository.BuscarSaidasPendentesAsync(CancellationToken cancellationToken)
   at Inpart.Integracao.Lean.Services.IntegracaoLeanService.ProcessarFinalizacoesPendentesAsync(CancellationToken cancellationToken)
   at InvokeStub_TaskAwaiter`1.GetResult(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

+853ms Processing

Server:
7495b0a7876a.staging:1
Worker:
02d7a0aa

+10ms Enqueued

Triggered by recurring job scheduler

Queue:
lean-jobs

08/04/2026 21:49:27 Created