feat: refs #5846 Added eventScheduler function #4

Merged
guillermo merged 4 commits from 5846-eventScheduler into master 2024-03-21 06:46:25 +00:00
Member
No description provided.
guillermo added 1 commit 2024-03-05 06:43:29 +00:00
guillermo requested review from juan 2024-03-05 06:43:35 +00:00
juan requested changes 2024-03-11 06:31:26 +00:00
Dismissed
myt-push.js Outdated
@ -225,6 +225,7 @@ class Push extends Command {
// Apply versions
this.emit('applyingVersions');
await this.eventScheduler(false);
Owner

Estaría millor en la funció run() de este mateix fitxer, on es fa el GET/RELEASE_LOCK.

Estaría millor en la funció `run()` de este mateix fitxer, on es fa el GET/RELEASE_LOCK.
guillermo marked this conversation as resolved
guillermo added 1 commit 2024-03-11 08:24:32 +00:00
guillermo requested review from juan 2024-03-11 08:24:37 +00:00
Author
Member

Comprobar si la variable global está a true, y si lo está hacerlo, de lo contrario, no hacer.

Comprobar si la variable global está a true, y si lo está hacerlo, de lo contrario, no hacer.
guillermo added 1 commit 2024-03-11 12:04:29 +00:00
juan requested changes 2024-03-20 11:03:39 +00:00
Dismissed
juan left a comment
Owner

Hacer cambios propuestos

Hacer cambios propuestos
myt-push.js Outdated
@ -134,2 +134,4 @@
opts.commit = true;
const [[scheduler]] = await conn.query(`SELECT @@event_scheduler state`);
if (scheduler.state === 'ON') await eventScheduler(false);
Owner

Mover a despues del GET_LOCK

Mover a despues del GET_LOCK
guillermo marked this conversation as resolved
myt-push.js Outdated
@ -159,2 +168,4 @@
async function releaseLock() {
await conn.query(`DO RELEASE_LOCK('myt_push')`);
if (scheduler.state === 'ON') await eventScheduler(true);
Owner

Mover antes del RELEASE_LOCK

Mover antes del RELEASE_LOCK
guillermo marked this conversation as resolved
guillermo added 1 commit 2024-03-20 11:18:53 +00:00
guillermo requested review from juan 2024-03-20 11:20:03 +00:00
juan approved these changes 2024-03-20 14:49:02 +00:00
guillermo merged commit dfa9570ea4 into master 2024-03-21 06:46:25 +00:00
guillermo deleted branch 5846-eventScheduler 2024-03-21 06:46:25 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: verdnatura/myt#4
No description provided.