Unusually long processing on taxonomy terms and max_exectution timeout

Created on 24 October 2024, 28 days ago

Problem/Motivation

Hi,
I have a taxonomy term with quite a few automator enabled fields. I'm delegating most of the to the cron queue. However, even a handful of fields take up the full 300 seconds of the PHP max_execution time. Ultimately, the process seems to save new terms but presents the user with a WSOD and the message:

Fatal error: Maximum execution time of 300 seconds exceeded in /var/www/***/core/lib/Drupal/Core/Cache/CacheableMetadata.php on line 169.

I can't judge whether or not the long execution time is normal (there is a dalle-2 call involved) but hitting the PHP limit is not ideal in general, I think.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI Automators

Created by

🇹🇭Thailand AlfTheCat

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

Comments & Activities

  • Issue created by @AlfTheCat
  • 🇩🇪Germany marcus_johansson

    You will have to benchmark this yourself, what you can do is turn on the AI Logging module and see what gets triggered or not and at what time.

    Check if there is a recurssion happening for instance - so the same job being triggered multiple times. If so, I need more info on how its setup and what is happening to be able to help.

Production build 0.71.5 2024