My question is as titled, is it possible to assign a custom id for the Scheduled job?
The reason for asking this:
1. My entire mission, is to set hangfire at a separate machine.
2. I have a web page, allowing user to set 'Start Date', 'End Date' and 'Crontab expression'
3. Now, based on 2), i got to have three jobs in hangfire
a. One job delayed to start at 'Start Date'
b. The job of a) is to run the crontab
c. One job delayed to remove the job at b)
Creating a new one is fine. But during edit, it puzzles me.
Q: how to edit a scheduled job? Some suggests to 'delete' then 'create a new one'
But the thing is, how to know the id of the scheduled job? Currently, the BackgroundJob returns an Id, which, seems that i need to store that id in a new table, such that in future, i can refer back this id to 'delete' it before creating a new one.
If i am able to assign a custom id, that at least save me from creating one table, as i am able to associate that ID with the ids from other table.
Any suggestion is appreciated