From 5a5baa13f1e474a1491ecbc3c786479a0c341319 Mon Sep 17 00:00:00 2001
From: Pranciskus Ambrazas
Date: Fri, 14 Jun 2024 12:30:10 +0300
Subject: [PATCH 1/2] fix - no timeout
---
services/subscriptions.service.ts | 1 +
1 file changed, 1 insertion(+)
diff --git a/services/subscriptions.service.ts b/services/subscriptions.service.ts
index 16ceee6..78a9938 100644
--- a/services/subscriptions.service.ts
+++ b/services/subscriptions.service.ts
@@ -266,6 +266,7 @@ export default class SubscriptionsService extends moleculer.Service {
id: ['number|convert', { type: 'array', items: 'number|convert' }],
mapping: 'boolean|optional',
},
+ timeout: 0,
})
async getEventsCount(ctx: Context<{ id: number | number[]; mapping?: boolean }>) {
const { id, mapping } = ctx.params;
From 51cecb4dcabaf577a12b8e1a46b3ed8b3f672a4c Mon Sep 17 00:00:00 2001
From: Pranciskus Ambrazas
Date: Fri, 14 Jun 2024 12:32:27 +0300
Subject: [PATCH 2/2] updated times
---
services/datagov.service.ts | 2 +-
services/integrations.fishStockings.service.ts | 2 +-
services/integrations.lumbering.service.ts | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/services/datagov.service.ts b/services/datagov.service.ts
index 23a0952..df7e0d6 100644
--- a/services/datagov.service.ts
+++ b/services/datagov.service.ts
@@ -27,7 +27,7 @@ export enum DATAGOV_APPS {
crons: [
{
name: 'infostatyba',
- cronTime: '0 3 * * *',
+ cronTime: '0 7 * * *',
timeZone: 'Europe/Vilnius',
async onTick() {
diff --git a/services/integrations.fishStockings.service.ts b/services/integrations.fishStockings.service.ts
index 193f78f..cdc1f3c 100644
--- a/services/integrations.fishStockings.service.ts
+++ b/services/integrations.fishStockings.service.ts
@@ -58,7 +58,7 @@ interface FishStocking {
crons: [
{
name: 'integrationsFishStockings',
- cronTime: '0 12 * * *',
+ cronTime: '0 3 * * *',
timeZone: 'Europe/Vilnius',
async onTick() {
await this.call('integrations.fishStockings.getData', {
diff --git a/services/integrations.lumbering.service.ts b/services/integrations.lumbering.service.ts
index f73bf37..17187e1 100644
--- a/services/integrations.lumbering.service.ts
+++ b/services/integrations.lumbering.service.ts
@@ -19,7 +19,7 @@ import { Event, toEventBodyMarkdown } from './events.service';
crons: [
{
name: 'integrationsLumbering',
- cronTime: '0 12 * * *',
+ cronTime: '0 4 * * *',
timeZone: 'Europe/Vilnius',
async onTick() {
await this.call('integrations.lumbering.getData', {