I am using 7.9 ignition version I am getting dead lock error please could tell where is wrong since this happen weekly or monthly how we can avoid the error

sambhaji.gawade
Tue, 20 Jan 2026 13:27:38 +0000
Ignition

if system.tag.read('[default]M3/Communication_OK').value == 1:
#Get all the finished injectors from EOL
kitSN_DS = system.db.runQuery("""SELECT DISTINCT trace.KITSN FROM [XPI_INJ_TRACE].[dbo].[T_INJ_TRACEABILITY] trace
INNER JOIN [XPI_INJ_TRACE].[dbo].[T_INJ_ASSEMBLY] assambly on trace.ID_TEST = assambly.ID_TEST and trace.KITSN = assambly.KITSN
WHERE trace.KITSN IN (SELECT KITSN FROM KITSN_MAPPING WHERE D_OK = 0) AND trace.kitsn not in (SELECT kitsn FROM [XPI_INJ_TRACE].[dbo].[T_INJ_TRACEABILITY] WHERE id_test = 'NEW') AND not trace.KITSN = 'SALVAGE' AND NOT trace.INJSN IS NULL AND NOT assambly.TEST_PASS IS NULL
""")

for row in kitSN_DS:
kitSN = row[0]
call = system.db.createSProcCall("writeEOLQualityCheck") #Set correct stored procedure
call.registerInParam(1, system.db.NVARCHAR, kitSN) #Send the correct kitSN number to the stored procedure

	system.db.execSProcCall(call) #Run the Stored Procedure

	XMLdata = call.getResultSet().getValueAt(0, 0) #Get the returned XML-string from Stored Procedure

	try:

		post_return = system.net.httpPost("http://SESOG1216.global.scd.xxx.com:8126", "text/xml", XMLdata)
	except:
		post_return = 'Failed'

	if post_return.find('The request was succesfully processed') > 0: #Good response back from M3
		shared.Log_Handler.WriteLog('httpPost','D_EOLQualityCheck',XMLdata) #Write the transfered data to database for traceability
		system.db.runPrepUpdate("UPDATE KITSN_MAPPING SET D_OK = 1 WHERE KITSN = ?", [kitSN],'XPI')
	elif post_return == 'Failed': #Communication crashed
		system.tag.write('M3/Communication_OK',0)
		break
	else: #Communication ok, but faulty response from M3
		shared.Log_Handler.WriteLog('httpPost','D_EOLQualityCheck','Not succefully processed from M3') #Not succefully processed from M3

19 posts - 3 participants