IBackgroundJob<ProcessamentoDocumentoExecutor>.EnqueueJob

The job is finished. It will be removed automatically 08/25/2026 15:39:06.
// Job ID: #273162
using MC.Hangfire.Background;

var backgroundJob = Activate<IBackgroundJob<ProcessamentoDocumentoExecutor>>();
await backgroundJob.EnqueueJob(
    null,
    FromJson<ProcessamentoDocumentoExecutor>("{\"DocumentoId\":67629}"),
    null);

Parameters

CurrentCulture
""
CurrentUICulture
""
RetryCount
1

State

08/24/2026 15:39:06 (+44.010s) Succeeded

Latency:
2m 54.384s
Duration:
43.985s

+30ms Processing

Server:
ln1xsdlwk000i47:79
Worker:
b7658b0b
+42msInício do processo

+53.887s Enqueued

Triggered by DelayedJobScheduler

Queue:
default

+40ms Scheduled

Retry attempt 1 of 10: Ocorreu um erro ao executar o servico

Enqueue at:
08/24/2026 15:38:09

+1m 36.190s Failed

An exception occurred during performance of the job.

MC.Exceptions.ServiceException

Ocorreu um erro ao executar o servico

MC.Exceptions.ServiceException: Ocorreu um erro ao executar o servico
 ---> MC.Exceptions.ServiceException: Ocorreu um erro ao executar o servico
 ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
 ---> System.ComponentModel.Win32Exception (258): Unknown error 258
   at Microsoft.Data.SqlClient.SqlCommand.<>c.<ExecuteDbDataReaderAsync>b__164_0(Task`1 result)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(DbContext _, Boolean result, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)
   at MC.AspNetCore.Log.DefaultLogger.AddLogMessageAsync[T](String idIntegracao, String descricao, String message, IUserContext userContext, String stacktrace, CancellationToken ct)
   at MC.AspNetCore.Log.ServiceLogger.DefaultServiceLogger.AddEntries(IEnumerable`1 auditEntries, String id, CancellationToken ct)
   at MC.AspNetCore.Log.ServiceLogger.DefaultServiceLogger.LogError(DateTime inicio, IEnumerable`1 auditEntries, Exception ex, CancellationToken ct)
   at Cont360.PortalCliente.Model.Models.ModelContext.SaveChangesAsync(CancellationToken cancellationToken) in D:\a\1\s\Cont360.PortalCliente.Model\Models\ModelContext.cs:line 170
   at MC.EntityFramework.DefaultImpl.UnitOfWork.UnitOfWork.CommitAsync(CancellationToken ct)
   at MC.EntityFramework.DefaultImpl.Service.Service`1.CommitAsync(IUserContext userContext, ServiceException exception, CancellationToken ct)
ClientConnectionId:21098d03-f9d5-4938-8631-e1b35fe289e6
Error Number:-2,State:0,Class:11
ClientConnectionId before routing:1a9ccb91-30f2-4488-80f0-807094df73c8
Routing Destination:cd7c100d7600.tr1016.brazilsouth1-a.worker.database.windows.net,11027
   --- End of inner exception stack trace ---
   at MC.EntityFramework.DefaultImpl.Service.Service`1.RollbackAsync(TService service, IUserContext userContext, ServiceException exception, CancellationToken ct)
   at MC.EntityFramework.DefaultImpl.Service.Service`1.ExecuteAsync(TService service, IUserContext userContext, CancellationToken ct)
   at Cont360.PortalCliente.Events.Empresa.DocumentoEditEvent.HandleAsync(EditAction`1 eventArg, IUserContext userContext, CancellationToken ct) in D:\a\1\s\Cont360.PortalCliente.Events\Empresa\DocumentoEditEvent.cs:line 104
   at MC.EntityFramework.DefaultImpl.Service.Service`1.HandleAsync(TService service, IUserContext userContext, CancellationToken ct)
   --- End of inner exception stack trace ---
   at MC.EntityFramework.DefaultImpl.Service.Service`1.RollbackAsync(TService service, IUserContext userContext, ServiceException exception, CancellationToken ct)
   at MC.EntityFramework.DefaultImpl.Service.Service`1.ExecuteAsync(TService service, IUserContext userContext, CancellationToken ct)
   at Cont360.PortalCliente.Servicos.Documento.RoboDocumento.EnqueueJob(PerformContext context, ProcessamentoDocumentoExecutor jobData, IJobCancellationToken ct) in D:\a\1\s\Cont360.PortalCliente.Servicos\Documento\RoboDocumento.cs:line 139
   at Cont360.PortalCliente.Servicos.Documento.RoboDocumento.EnqueueJob(PerformContext context, ProcessamentoDocumentoExecutor jobData, IJobCancellationToken ct) in D:\a\1\s\Cont360.PortalCliente.Servicos\Documento\RoboDocumento.cs:line 139
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

+24.097s Processing

Server:
ln1xsdlwk000i47:79
Worker:
b7658b0b
+36msInício do processo
+1m 18.825sOcorreu um erro ao executar o servico

+120ms Enqueued

Queue:
default

08/24/2026 15:35:27 Created