Allow running CRON with a user other than the anonymous user

Created on 11 June 2024, 9 months ago

Problem/Motivation

Currently it is defined that the user running CRON is forced to be anonymous but this may not be correct in cases, such as having a headless head with the content access API capped, which causes constant access errors every time CRON is run.

Steps to reproduce

Proposed resolution

My proposal is to make configurable the user with which CRON is executed by modifying the SimpleCron file in charge of overwriting the system CRON.

Remaining tasks

  • Data model changes
  • User interface changes
  • Code implementation in src/SimpleCron.php file

User interface changes

Yes, in the configuration section of simple_cron you should be able to select the user with which CRON will be executed, so we have available all the roles/permissions layer for this.

API changes

N/A

Data model changes

Yes, we should be able to store the selected user.

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain dcimorra 🇪🇸 Spain

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024