Can i start fireForget in RecurringJob

recurring
Tags: #<Tag:0x00007f78329473f0>

#1

hi. i have two methods. SaveSmsList(toDataase), SendSms(Get From DB and process). (Each method process 400k row). if i use save and send together, when job get error, The job start all over again. I just want to seperate them so if i can use “contiune with” in RecurringJob just like “fire and forget”, I can do it. So i think maybe if i use fireandforget in RecurringJob, i can do it. but i am worring about that. is it good case or bad case. by the way sorry about my english. i hope could tell.

job cron is Cron.Month()


#2

regardless of how you enque the jobs, your job must support reentrant nature: https://docs.hangfire.io/en/latest/best-practices.html#make-your-background-methods-reentrant