We got the following error when creating a batch with the Redis backend:
---> StackExchange.Redis.RedisServerException: ERR Protocol error: invalid multibulk length
at StackExchange.Redis.ConnectionMultiplexer.ExecuteSyncImpl[T](Message message, ResultProcessor`1 processor, ServerEndPoint server)
at StackExchange.Redis.RedisBase.ExecuteSync[T](Message message, ResultProcessor`1 processor, ServerEndPoint server)
at StackExchange.Redis.RedisDatabase.ScriptEvaluate(String script, RedisKey[] keys, RedisValue[] values, CommandFlags flags)
at Hangfire.Pro.Redis.RedisTransaction.Commit()
at Hangfire.BatchJobClient.Create(Action`1 createAction, IBatchState state, String description)
--- End of inner exception stack trace ---
at Hangfire.BatchJobClient.Create(Action`1 createAction, IBatchState state, String description)
at Hangfire.BatchJobClientExtensions.StartNew(IBatchJobClient client, Action`1 createAction, String description)
at Hangfire.BatchJob.StartNew(Action`1 createAction, String description)
The batch had 22,065 jobs in it (7,355 to enqueue immediately, as well as 14,710 jobs awaiting those). It also had 3 jobs awaiting the completion of the batch.
We are using:
Hangfire 1.7.18
Hangfire.Pro 2.2.3.0
Hangfire.Pro.Redis 2.8.4.0
We are using Redis 6.0.5 in AWS Elasticache.