DataCloud scheduler Rex job: qa2

// Job ID: #11580
using LegalOne.Lib.Queue.Hangfire.Queues;

var dataCloudSchedulerRexQueueResolver = Activate<DataCloudSchedulerRexQueueResolver<DataCloudSchedulerJob,TaskQueueItemParam<DataCloudScheduleQueueItem>>>();
dataCloudSchedulerRexQueueResolver.Run(
    "DataCloud scheduler Rex job: qa2",
    FromJson<TaskQueueItemParam`1>("{\"ReportModelId\":0,\"ReportId\":0,\"AppIdInstance\":0,\"Parameter\":{\"Id\":1020,\"IdMonHorarioAgendadorApp\":2,\"TimeZoneIdentiy\":\"E. South America Standard Time\",\"SchedulerType\":1,\"DataBaseName\":\"express-firmbr-qa2\",\"DataBaseServer\":\"legalone-dev-eastus2.database.windows.net\",\"AppIdInstancia\":8192195,\"OfficeName\":\"qa2\",\"ManagerIdentifier\":\"37afbbf6-0c93-446b-9284-d4e298c4ca8a\",\"UtcDifference\":-180,\"EnqueuedDate\":\"2022-09-27T20:05:00.5645614Z\"},\"ReportIdentifier\":null,\"TransactionId\":null,\"Tenancy\":\"qa2\",\"TenantIdentifier\":null,\"UserId\":-1,\"BatchId\":null,\"OperationId\":\"mSOFRU9wFjs=\",\"EnqueueTime\":\"2025-12-12T13:47:40.5138438-03:00\",\"MutexIdentifier\":null,\"QueueType\":null}"),
    null);
BatchId
"cc2397a5-810c-48a3-9220-3b97ce02636c"
CurrentCulture
"pt-BR"
CurrentUICulture
"pt-BR"

State

27/09/2022 23:06:02 (+1m 2.280s) Failed

An exception occurred during performance of the job.

System.ApplicationException

Error on DataCloud scheduler Rex job: qa2. See inner exception for more details.

System.ApplicationException: Error on DataCloud scheduler Rex job: qa2. See inner exception for more details. ---> System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (502) Bad Gateway. ---> System.Net.WebException: The remote server returned an error: (502) Bad Gateway.
   at System.Net.HttpWebRequest.GetResponse()
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   --- End of inner exception stack trace ---

Server stack trace: 
   at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory`1 factory, WebException responseException, ChannelBinding channelBinding)
   at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Novajus.WSConsumo.WSRex.IWSRex.GetMonthBalance_Processo(GetMonthBalance_ProcessoRequest request)
   at LegalOne.Lib.LegalOneMonitoramento2Rex.RequestMonthBalance(Int32 idInstance, String dcPass) in C:\Agent\1\_work\56\s\LegalOne\LegalOne.Lib\Monitoramento\Lib\LegalOneMonitoramento2Rex.cs:line 564
   at LegalOne.Lib.LegalOneMonitoramento2`3.StartBlock() in C:\Agent\1\_work\56\s\LegalOne\LegalOne.Lib\Monitoramento\Lib\LegalOneMonitoramento2.cs:line 790
   at LegalOne.Lib.Schedulers.DataCloud.Rex.GerenciadorTarefas.GerenciadorTarefasRexNovaJus.NotificaInicioTarefa(Tarefa tarefa) in C:\Agent\1\_work\56\s\LegalOne\LegalOne.Lib\Schedulers\DataCloud\Rex\GerenciadorTarefas\GerenciadorTarefasRexNovaJus.cs:line 165
   at LegalOne.Lib.Schedulers.DataCloud.DataCloudSchedulerJob.Run(TaskQueueItemParam`1 param) in C:\Agent\1\_work\56\s\LegalOne\LegalOne.Lib\Schedulers\DataCloud\DataCloudSchedulerJob.cs:line 172
   at LegalOne.Lib.Queue.Hangfire.TaskQueueResolver`2.Execute(TTask task, TTaskParam parameter, Exception& exception) in C:\Agent\1\_work\56\s\LegalOne\LegalOne.Lib\Queue\Hangfire\TaskQueueResolver.cs:line 161
   --- End of inner exception stack trace ---
   at LegalOne.Lib.Queue.Hangfire.TaskQueueResolver`2.Run(String jobDescription, TTaskParam parameter, IJobCancellationToken cancellationToken) in C:\Agent\1\_work\56\s\LegalOne\LegalOne.Lib\Queue\Hangfire\TaskQueueResolver.cs:line 139

+80ms Processing

Server:
wn1mdwk0000qy:7844
Worker:
f99b517e

+13ms Enqueued

27/09/2022 23:05:00 Created