Replies: 2 comments 4 replies
-
Hello. Have you tried I'm not sure we should load as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
Pavlo, I think you already have this queue table in the form of the timetable.active_chain table. Just two thoughts:
queue_id BIGSERIAL PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT now(),
started_at TIMESTAMPTZ,
chain_id BIGINT timetable.chain(chain_id),
chain_name TEXT NOT NULL UNIQUE, |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Sometimes I need run job "as soon as possible", not waiting up to 60 seconds to refetch chains.
Describe the solution you'd like
Scheduler should load new chain and tasks as soon as it was append to table.
My be, we can use notifications from table triggers (after commit of transaction).
Describe alternatives you've considered
Decrease refetch interval in source code, but this will increase database loading.
Beta Was this translation helpful? Give feedback.
All reactions