Move cron invocation to separate listener

Created on 9 January 2013, almost 12 years ago
Updated 27 March 2024, 8 months ago

Follow up for #1599622-8: Run poormanscron via a non-blocking HTTP request β†’

Problem/Motivation

The whole function should probably be moved into a separate listener (it is only invoked by RequestCloseSubscriber) that gets all the things injected. That is, however, not trivial as "the things" means CacheFactory, KeyValueFactory for state, Lock*, guzzle client and there's the do-not-execute-this-on-ajax-requests @todo in RequestCloseSubscriber.

Proposed resolution

Move lock/Guzzle function to separate listener

Remaining tasks

  • clarify/correct issue summary
  • ...

User interface changes

No UI changes anticipated.

API changes

Yes, moving the function (?)

πŸ“Œ Task
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
CronΒ  β†’

Last updated about 1 month ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States yesct

Live updates comments and jobs are added and updated live.
  • API clean-up

    Refactors an existing API or subsystem for consistency, performance, modularization, flexibility, third-party integration, etc. May imply an API change. Frequently used during the Code Slush phase of the release cycle.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024