Class MatrixAgentPusherJob
java.lang.Object
io.meeds.chat.job.MatrixAgentPusherJob
Reconciles, periodically, the chat pusher and push rules of every account
of a declared kind (a digital worker), so that a pusher Synapse deleted, a
drifted rule or an account the listeners missed is repaired within one
period. The schedule is
meeds.matrix.agents.pusher.cron, every 15
minutes by default, read at boot. Each node runs it; a reconcile is
idempotent across nodes.
It opens no transaction itself: listing the accounts and reconciling each one are separate transactions of the service, so one account's turn never holds a session through another's Synapse calls.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReconciles every account that wants a pusher, one after the other.
-
Constructor Details
-
MatrixAgentPusherJob
public MatrixAgentPusherJob()
-
-
Method Details
-
reconcileAgentPushers
@Scheduled(cron="${meeds.matrix.agents.pusher.cron:0 0/15 * * * *}") public void reconcileAgentPushers()Reconciles every account that wants a pusher, one after the other.
-