// Id: #1223
using PD_Api.Jobs;
var dashboardKrSnapshotRecalcJob = Activate<DashboardKrSnapshotRecalcJob>();
await dashboardKrSnapshotRecalcJob.ExecuteAsync(40, 955, 1);
| CurrentCulture | |
| CurrentUICulture | |
| RetryCount | |
An exception occurred during performance of the job.
Cannot add or update a child row: a foreign key constraint fails (`smartpdi_dev`.`dashboard_kr_projeto_empresa`, CONSTRAINT `fk_dashboard_kr_projeto` FOREIGN KEY (`projeto_id`) REFERENCES `projeto` (`projeto_id`))
MySqlConnector.MySqlException: Cannot add or update a child row: a foreign key constraint fails (`smartpdi_dev`.`dashboard_kr_projeto_empresa`, CONSTRAINT `fk_dashboard_kr_projeto` FOREIGN KEY (`projeto_id`) REFERENCES `projeto` (`projeto_id`)) at MySqlConnector.Core.ServerSession.ReceiveReplyAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ServerSession.cs:line 894 at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 37 at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130 at MySqlConnector.MySqlDataReader.InitAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 483 at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56 at MySqlConnector.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 309 at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRawAsync(DatabaseFacade databaseFacade, String sql, IEnumerable`1 parameters, CancellationToken cancellationToken) at PD_Api.Services.DashboardKr.DashboardKrService.RecalcularEmpresaAsync(UInt32 empresaId, Usuario usuario, IReadOnlyList`1 projetoIds, CancellationToken cancellationToken) in /home/vsts/work/1/s/PD_Api/Services/DashboardKr/DashboardKrService.cs:line 214 at PD_Api.Jobs.DashboardKrSnapshotRecalcJob.ExecuteAsync(UInt32 empresaId, Nullable`1 usuarioIniciadorId, Nullable`1 projetoId) in /home/vsts/work/1/s/PD_Api/Jobs/DashboardKrSnapshotRecalcJob.cs:line 45 at PD_Api.Jobs.DashboardKrSnapshotRecalcJob.ExecuteAsync(UInt32 empresaId, Nullable`1 usuarioIniciadorId, Nullable`1 projetoId) in /home/vsts/work/1/s/PD_Api/Jobs/DashboardKrSnapshotRecalcJob.cs:line 45 at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Triggered by DelayedJobScheduler
Retry attempt 10 of 10: Cannot add or update a child row: a foreign key c…
An exception occurred during performance of the job.
Cannot add or update a child row: a foreign key constraint fails (`smartpdi_dev`.`dashboard_kr_projeto_empresa`, CONSTRAINT `fk_dashboard_kr_projeto` FOREIGN KEY (`projeto_id`) REFERENCES `projeto` (`projeto_id`))
MySqlConnector.MySqlException: Cannot add or update a child row: a foreign key constraint fails (`smartpdi_dev`.`dashboard_kr_projeto_empresa`, CONSTRAINT `fk_dashboard_kr_projeto` FOREIGN KEY (`projeto_id`) REFERENCES `projeto` (`projeto_id`)) at MySqlConnector.Core.ServerSession.ReceiveReplyAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/ServerSession.cs:line 894 at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 37 at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130 at MySqlConnector.MySqlDataReader.InitAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary`2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 483 at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56 at MySqlConnector.MySqlCommand.ExecuteNonQueryAsync(IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 309 at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.ExecuteSqlRawAsync(DatabaseFacade databaseFacade, String sql, IEnumerable`1 parameters, CancellationToken cancellationToken) at PD_Api.Services.DashboardKr.DashboardKrService.RecalcularEmpresaAsync(UInt32 empresaId, Usuario usuario, IReadOnlyList`1 projetoIds, CancellationToken cancellationToken) in /home/vsts/work/1/s/PD_Api/Services/DashboardKr/DashboardKrService.cs:line 214 at PD_Api.Jobs.DashboardKrSnapshotRecalcJob.ExecuteAsync(UInt32 empresaId, Nullable`1 usuarioIniciadorId, Nullable`1 projetoId) in /home/vsts/work/1/s/PD_Api/Jobs/DashboardKrSnapshotRecalcJob.cs:line 45 at PD_Api.Jobs.DashboardKrSnapshotRecalcJob.ExecuteAsync(UInt32 empresaId, Nullable`1 usuarioIniciadorId, Nullable`1 projetoId) in /home/vsts/work/1/s/PD_Api/Jobs/DashboardKrSnapshotRecalcJob.cs:line 45 at InvokeStub_TaskAwaiter.GetResult(Object, Object, IntPtr*) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Triggered by DelayedJobScheduler
Retry attempt 9 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 8 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 7 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 6 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 5 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 4 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 3 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 2 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Enqueued': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100
Retry attempt 1 of 10: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJo…
Can not change the state to 'Processing': target method was not found.
The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)`
System.InvalidOperationException: The type `PD_Api.Jobs.DashboardKrSnapshotRecalcJob` does not contain a method with signature `ExecuteAsync(UInt32, Nullable`1, Nullable`1)` at Hangfire.Storage.InvocationData.<>c.<CachedDeserializeMethod>b__33_0(MethodDeserializerCacheKey key) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 350 at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory) at Hangfire.Storage.InvocationData.CachedDeserializeMethod(Func`2 typeResolver, String typeName, String methodName, String parameterTypes, Type& type, MethodInfo& methodInfo) in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 335 at Hangfire.Storage.InvocationData.DeserializeJob() in C:\projects\hangfire-525\src\Hangfire.Core\Storage\InvocationData.cs:line 100