1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-31 00:16:47 +01:00
unleash.unleash/src/lib/features
Ivar Conradi Østhus 354b88383c
fix: schduler-service graceful shutdown (#6125)
When a stop signal is sent to Unleash the scheduler-service should
cancel any scheduled jobs. This also applies to the job scheduled for
initial execution with jitter.


We observed that initial jobs was executed after the database
connections are terminated. This appears after v5.9.0 of Unleash.

```
Error: aborted
    at Object.queryBuilder (/unleash/node_modules/knex/lib/knex-builder/make-knex.js:112:26)
    at createQueryBuilder (/unleash/node_modules/knex/lib/knex-builder/make-knex.js:320:26)
    at EventStore.knex [as db] (/unleash/node_modules/knex/lib/knex-builder/make-knex.js:101:12)
    at EventStore.setUnannouncedToAnnounced (/unleash/node_modules/unleash-server/dist/lib/features/events/event-store.js:286:33)
    at EventStore.publishUnannouncedEvents (/unleash/node_modules/unleash-server/dist/lib/features/events/event-store.js:293:35)
    at EventAnnouncer.publishUnannouncedEvents (/unleash/node_modules/unleash-server/dist/lib/services/event-announcer-service.js:9:32)
    at runScheduledFunctionWithEvent (/unleash/node_modules/unleash-server/dist/lib/features/scheduler/scheduler-service.js:30:23)
    at Timeout.<anonymous> (/unleash/node_modules/unleash-server/dist/lib/features/scheduler/scheduler-service.js:50:27)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at process.processTimers (node:internal/timers:509:9)
```
2024-02-05 11:04:13 +01:00
..
access fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
change-request-access-service fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
change-request-segment-usage-service fix(import): making all imports relative and removing baseUrl (#5847) 2024-01-17 15:33:03 +02:00
client-feature-toggles chore: split metrics by request type (#6119) 2024-02-05 09:01:42 +01:00
dependent-features chore: centralize events service creation (#5910) 2024-01-16 13:11:28 +01:00
events chore: scheduled created-by migrations metrics (#6089) 2024-01-31 12:30:42 +01:00
export-import-toggles chore: events created by userid migration (#6027) 2024-01-30 08:22:53 +01:00
feature-naming-pattern refactor: remove check for feature naming data object (#4745) 2023-09-15 12:51:47 +02:00
feature-search chore: remove featureSearchAPI flag (#6081) 2024-01-31 10:01:31 +02:00
feature-toggle chore: scheduled created-by migrations metrics (#6089) 2024-01-31 12:30:42 +01:00
group chore: centralize events service creation (#5910) 2024-01-16 13:11:28 +01:00
instance-stats chore: events created by userid migration (#6027) 2024-01-30 08:22:53 +01:00
maintenance fix: maintenance mode should assume disable if db call fails. (#6120) 2024-02-03 09:17:11 +01:00
metrics task: Add banner encouraging edge upgrade (#6018) 2024-01-24 14:22:48 +00:00
playground fix: admin token should be passed forward from controllers (#5960) 2024-01-30 11:03:15 +02:00
private-project fix: admin token should be passed forward from controllers (#5960) 2024-01-30 11:03:15 +02:00
project chore: events created by userid migration (#6027) 2024-01-30 08:22:53 +01:00
project-environments chore: re use extract user methods (#5947) 2024-01-18 13:15:21 +01:00
scheduler fix: schduler-service graceful shutdown (#6125) 2024-02-05 11:04:13 +01:00
segment chore: remove detectSegmentUsageInChangeRequests flag (#6080) 2024-01-31 17:24:35 +09:00
tag-type chore: re use extract user methods (#5947) 2024-01-18 13:15:21 +01:00
index.ts refactor: Instance stats service composition root (#6029) 2024-01-25 09:11:26 +01:00