Job running with old instance of code #2359
Replies: 1 comment 10 replies
-
Hi @lahma , what should i do to resolve this? See below screen grab. I deployed the code to include the build number (BuildNumber=1.2405.23.2) in the log. then again deployed the code so that new build number (BuildNumber=1.2405.23.3) start appearing in the log. However, it is seen that the quartz.net is running code from both the builds. See below. Green one is latest build and yellow is the earlier build. I tried a lot since my original post above but this is always the case. Restarting server also doesn't help. Can you please guide. Additional info - I am not using static variables. Job runs for not more than 1 second. Logs are in by time desc so i should see build 1.2405.23.3 as the top entry but seeing 1.2405.23.2. |
Beta Was this translation helpful? Give feedback.
-
I am using Quartz.Extensions.Hostin 3.8.1 scheduling package in .netcore6 web api application. App deployment environment is azure appservice (running on 2 instances). I have below quartz config for 4 jobs.
Let say job1 calls instance of LogicClass which has method "Process(bool CalledByJob)". It is called by Job1 class something like below.
LogicClass's process method has code to log saying "Processing start. CalledByJob={calledbyJob}"
So when the job starts, i can see the log happening which is expected.
However , when i was done with testing, i removed the part "CalledByJob={calledbyJob}" from the log. The log now only said "Processing start".
The issue i am seeing is that after deployment of the code (i.e without CalledByJob log), some job run is showing it (i.e. "calledByJob=true") in the log and some not. I tried restarting the azure app service and Purging the azure front door cache. no luck though.
Can anyone please guide me why this is happening and what's the solution.
Beta Was this translation helpful? Give feedback.
All reactions