Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HandleEntrySchedule has timed out #11051

Closed
jbrhel opened this issue Nov 4, 2024 · 3 comments
Closed

HandleEntrySchedule has timed out #11051

jbrhel opened this issue Nov 4, 2024 · 3 comments

Comments

@jbrhel
Copy link

jbrhel commented Nov 4, 2024

Bug description

After updating to version 5.36.0, my Laravel Horizon started unexpectedly reporting unfinished tasks with the message HandleEntrySchedule has timed out. Additionally, I noticed a significant increase in system resource (CPU) usage in the artisan horizon:work process.

I suspect the origin of this issue might be related to PR: #10966.

How to reproduce

  1. running artisan horizon
  2. updating content using Statamic CP
  3. Exception
Illuminate\Queue\TimeoutExceededException: Statamic\Jobs\HandleEntrySchedule has timed out. in /laravel/framework/src/Illuminate/Queue/TimeoutExceededException.php:15
--
Stack trace:
#0 /Illuminate/Queue/Worker.php(803): Illuminate\Queue\TimeoutExceededException::forJob()
#1 /Illuminate/Queue/Worker.php(218): Illuminate\Queue\Worker->timeoutExceededException()
#2 /Illuminate/Cache/MemcachedStore.php(59): Illuminate\Queue\Worker->Illuminate\Queue\{closure}()
  1. Exception Context
null
  1. Data

{
  "job": null,
  "connection": null,
  "queue": null,
  "delay": null,
  "afterCommit": null,
  "middleware": [],
  "chained": [],
  "chainConnection": null,
  "chainQueue": null,
  "chainCatchCallbacks": null
}

Logs

No response

Environment

Environment
Application Name: project
Laravel Version: 11.26.0
PHP Version: 8.3.7
Composer Version: 2.8.2
Environment: production
Debug Mode: OFF
URL: project.cz/
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: memcached
Database: mysql
Logs: stack / rollbar, single
Mail: mailgun
Queue: redis
Session: file

Statamic
Addons: 2
Sites: 4 (cs, en, sk, pl)
Stache Watcher: Disabled
Static Caching: full
Version: 5.36.0 PRO

Statamic Addons
appswithlove/statamic-one-click-content-translation: 5.2.3
jacksleight/statamic-bard-mutator: 3.0.3

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@duncanmcclean
Copy link
Member

How many entries do you have?

@jbrhel
Copy link
Author

jbrhel commented Nov 7, 2024

@duncanmcclean We have around 2,600 items, and all of them need to be multiplied by 4 language variations. The pages contain a large number of images.

However, I changed the cache_driver type from memcached to redis, and this issue no longer occurs. At the same time, I am noticing a significant improvement in page loading speed when the pages are reloaded after clearing the cache.

Therefore, this issue can likely be closed.

@duncanmcclean
Copy link
Member

Okay!

If anyone else runs into this in the future, it might be worth playing around with the timeout setting on your queue workers, especially if you have lots of entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants