Publishing new jobs using reflection

Tags: #<Tag:0x00007efd22e03de8>

Hi :slight_smile:

I’m working on a project that has many database jobs. I’m creating a HangFire server so that we can start migrating these database jobs to
recurring jobs and take advantage of the entire HangFire infrastructure.

My problem is how to deploy the new jobs, without having to publish the hangfire server.

I created a common Interface so that all jobs that are created implement the same interface.I was thinking of uploading the DLLs to the server via the POST API,
and register jobs using reflection.

I can already register jobs, but I have difficulty separating job contexts, especially when using the same DLLs. I’m having a lot of conflicts

I thought about it a little, but I couldn’t find a way to solve my problem.

Has anyone tried this? Any suggestion?

Thanks