I have two mongo Hangfire databases: the first is local (running in Docker) and works properly, while the second is hosted in the cloud and isn’t functioning as expected. The cloud database is used by multiple projects. The project is a .NET application, and I’m using Rider as the IDE, if that’s relevant. I’m triggering jobs through an additional controller using RecurringJob.TriggerJob()
.
When I run the app with the connection to the local Docker-based Hangfire instance and set a breakpoint at the first line of my job, I can always catch it and debug. The jobs start properly, and I can see all the information and statuses in the database.
However, when I change the connection string to point to the cloud-based Hangfire database and trigger the job again, the code doesn’t execute. Even though the job code doesn’t run, the cloud database still shows all the information about the job and reports a “Succeeded” status.
What might I be missing? What additional information should I gather to help diagnose the problem? Any suggestions on how to troubleshoot this issue? Thanks in advance!