l10n_packager_cron() still needs to be ported from Drupal 7.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fmb created an issue. See original summary.

fmb’s picture

Assigned: fmb » Unassigned
Status: Active » Postponed (maintainer needs more info)

The commented part in l10n_packager_cron() creates queues that will later parse releases. This part did not exist in the Drupal 7 version. Besides, we already have a drush command (drush 10n_server:parse) which implements this and could be used directly in a crontab. Implementing this feature also in a queue would either lead to code duplication or require some refactoring. How relevant is this?

fmb’s picture

gábor hojtsy’s picture

Status: Postponed (maintainer needs more info) » Needs review

Answering #2: the Drupal 7 cron only calls l10n_packager_check_updates() when the "Generate packages on every Drupal cron run" setting is on, and that part is already ported at this time. The commented queue code has no Drupal 7 counterpart, and the queue worker it would feed does nothing, so the change removes the commented block, the empty l10n_server_packager queue worker and the packager release storage handler that only existed for it.

What was missing is a test. Drupal 7 got testCronPackaging() first: cron does not package by default, with the setting on and the interval set to every cron run it packages one file per run with the default file limit, the release only counts as checked once all its languages are done, and a partly packaged release is picked up again after the repackaging interval. PackagerCronTest is the port, on a shared kernel test base with the packaging test.

LLM was used to find, diagnose explain and fix this issue. With human review.

  • ba83e188 committed on 3.0.x
    fix #3503845: Finalize cron in l10n_packager module
    
    Remove the dead...

  • f2ef73ac committed on 7.x-1.x
    fix #3503845: Finalize cron in l10n_packager module
    
    Add the cron...
gábor hojtsy’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.