HangfireIO / HangfireIO/Hangfire

Queue Name length greater than 20 characters -> silently fails to run

Open
#950 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.1k
Forks
1.8k
Avg merge
1h 19m
Merged PRs (30d)
1

Description

When we give Hangfire a queue name that is longer than 20 characters:
* Hangfire will not execute that queue.
* Hangfire will not provide any error message regarding the queue name length.

Expected behavior:
* Hangfire gives error message when long queue name is provided

Note: Different Hangfire versions and storage mechanisms may support different queue name lengths (see #369 and #376)

Hangfire.Core 1.6.12

Hangfire.PostgreSql 1.4.3

Our setup looks like:

```
PostgreSqlBootstrapperConfigurationExtensions.UsePostgreSqlStorage(
(GlobalConfiguration)GlobalConfiguration.Configuration,
"primaryConnection");
GlobalJobFilters.Filters.Add(new AutomaticRetryAttribute { Attempts = 2 });
GlobalJobFilters.Filters.Add(new QueueAttribute(importQueueName));
GlobalJobFilters.Filters.Add(new QueueAttribute(exportQueueName));
GlobalJobFilters.Filters.Add(new RaygunLogger());

_backgroundJobServer = new BackgroundJobServer(new BackgroundJobServerOptions
{
Queues = new[] { importQueueName, exportQueueName}
});
var importChron = ConfigurationManager.AppSettings["importScheduleCron"];
RecurringJob.AddOrUpdate("ImportProcessorJob", j => j.Execute(),
importChron,
queue: importQueueName,
timeZone: TimeZoneInfo.Local);

var exportChron = ConfigurationManager.AppSettings["exportScheduleCron"];
RecurringJob.AddOrUpdate("ExportProcessorJob", j=> j.Execute(),
exportChron,
queue: exportQueueName,
timeZone: TimeZoneInfo.Local);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.