update
This commit is contained in:
@ -458,8 +458,8 @@ class GpsTracksModels {
|
|||||||
// "Lock wait timeout" karena banyak transaksi menumpuk
|
// "Lock wait timeout" karena banyak transaksi menumpuk
|
||||||
// menunggu baris yang sama.
|
// menunggu baris yang sama.
|
||||||
lock = await rltmMutex.lock(`t_gps_tracks_rltm:${rltm.device_id}`, {
|
lock = await rltmMutex.lock(`t_gps_tracks_rltm:${rltm.device_id}`, {
|
||||||
duration: 50000, // maksimal lock dipegang 5 detik
|
duration: 90000, // maksimal lock dipegang 5 detik
|
||||||
maxWait: 50000, // menunggu lock maksimal 10 detik lalu error
|
maxWait: 90000, // menunggu lock maksimal 10 detik lalu error
|
||||||
})
|
})
|
||||||
|
|
||||||
let devices = await MysqlHelpers.queryTrx(
|
let devices = await MysqlHelpers.queryTrx(
|
||||||
|
|||||||
Reference in New Issue
Block a user