chore: migrate to fof/redis, repo maintenance (#4)

* chore: migrate to fof/redis, repo maintenance

* chore: newline

* chore: use new fof horizon initializer

* chore: revert initializer  change

Only changed for 2.x ..

* chore: remove unused secrets

Shouldn't have been added in the first place

---------

Co-authored-by: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com>
Co-authored-by: Davide Iadeluca <davide.iadeluca@glowingblue.com>
This commit is contained in:
IanM
2025-10-10 10:50:31 +01:00
committed by GitHub
parent 2f2cce1abe
commit 6545bfdffc
13 changed files with 128 additions and 64 deletions

View File

@@ -36,7 +36,7 @@ app.initializers.add(slug, () => {
label: t(`${prfx}.enable_queue`),
});
if (app.initializers.has('blomstra/horizon')) {
if (app.initializers.has('fof/horizon')) {
app.extensionData.for(slug).registerSetting({
setting: 'glowingblue-redis.horizonConfig',
type: 'textarea',
@@ -46,15 +46,16 @@ app.initializers.add(slug, () => {
}
extend(StatusWidget.prototype, 'items', (items) => {
const loads = app.data.blomstraQueuesLoad;
const loads = app.data.fofQueuesLoad;
if (loads === undefined) {
return;
}
for (let queue of app.data.blomstraQueuesSeen) {
// @ts-ignore
for (let queue of app.data.fofQueuesSeen) {
const load = loads[queue] || null;
items.add('blomstra-queue-size-' + queue, [
items.add('fof-queue-size-' + queue, [
<strong>Queue {queue}</strong>,
<br />,
load || '0',