FormatException on BatchJobs

sql-server
queues
Tags: #<Tag:0x00007f69fd72c180> #<Tag:0x00007f69fd7dbf68>

#1

Hello guys i am trying to use BatchJobs. And in recurring jobs i am adding another job to a batch job.
But at the end i get an error. Actually i am not doing anything this was just a test job.
Here is the screenshot:

And here is the code block of import method:
image

And here is how i generate the batch job:

System.FormatException
Input string was not in a correct format.

System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
   at Hangfire.SqlServer.SqlServerConnection.<>c__DisplayClass11_0.<GetJobParameter>b__0(DbConnection connection)
   at Hangfire.SqlServer.SqlServerStorage.UseConnection[T](DbConnection dedicatedConnection, Func`2 func)
   at Hangfire.SqlServer.SqlServerConnection.GetJobParameter(String id, String name)
   at Hangfire.Batches.CachedStateConnection.GetJobParameter(String id, String name)
   at Hangfire.Batches.CachedStateConnection.GetJobParameter(String id, String name)
   at Hangfire.ContinuationsSupportAttribute.GetContinuations(IStorageConnection connection, String jobId)
   at Hangfire.ContinuationsSupportAttribute.AddContinuation(ElectStateContext context, AwaitingState awaitingState)
   at Hangfire.ContinuationsSupportAttribute.OnStateElection(ElectStateContext context)
   at Hangfire.States.StateMachine.ApplyState(ApplyStateContext initialContext)
   at Hangfire.Batches.States.BatchStateMachine.ApplyStates(ApplyBatchStateContext context, List`1 createdItems, Dictionary`2& appliedJobStates, Dictionary`2& appliedBatchStates)
   at Hangfire.Batches.States.BatchStateMachine.RunStateAction(ApplyBatchStateContext context)
   at Hangfire.Batches.States.BatchStateMachine.ApplyState(ApplyBatchStateContext context)
   at Hangfire.Batches.States.BatchStateChanger.ChangeState(BatchStateChangeContext context)
   at Hangfire.Batches.BatchContinuationsSupportAttribute.ExecuteContinuationsIfExist(ApplyBatchStateContext context)
   at Hangfire.Batches.BatchContinuationsSupportAttribute.OnStateApplied(ApplyBatchStateContext context)
   at Hangfire.Batches.States.BatchStateMachine.ApplyState(ApplyBatchStateContext context)
   at Hangfire.Batches.States.BatchStateChanger.ChangeState(BatchStateChangeContext context)
   at Hangfire.Batches.BatchJobSupportAttribute.TryFinishBatch(JobStorage storage, JobStorageConnection connection, JobStorageTransaction transaction, String batchId, String setToExpire)
   at Hangfire.Batches.BatchJobSupportAttribute.OnStateApplied(ApplyStateContext context, IWriteOnlyTransaction outerTransaction)
   at Hangfire.States.StateMachine.ApplyState(ApplyStateContext initialContext)
   at Hangfire.States.BackgroundJobStateChanger.ChangeState(StateChangeContext context, BackgroundJob backgroundJob, IState toState, String oldStateName)

HangFire 2.1: Ready for Production?
#2

What versions of Hangfire packages are you using?


#3

Hangfire.Core v1.6.17
Hangfire.SqlServer v1.6.17
Hangfire.Pro v2.1.0
Hangfire.Console v1.3.10


#4

Hey I was wondering if you found any resolution to this problem?