-
-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
Hey,
recently I got a weird Exception from the ChildStub. It happens randomly and every other Workflow which spawns childs run without any errors. Maybe this happens because of too many Activities in one Workflow and is only an edge-case? At the moment of the crash there were already ~580 Activies called.
Describe the bug
When running workflows that dispatch a child workflow via Workflow\child(), the queue worker crashes with a BadMethodCallException. It appears that the code is trying to call index() as a method on the StoredWorkflowLog Eloquent model instead of accessing it as a property ($log->index).
Stacktrace Child-Workflow
[2026-03-19 14:04:28] production.ERROR: Call to undefined method Workflow\Models\StoredWorkflowLog::index() {"exception":"[object] (BadMethodCallException(code: 0): Call to undefined method Workflow\\Models\\StoredWorkflowLog::index() at /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php:67)
[stacktrace]
#0 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(36): Illuminate\\Database\\Eloquent\\Model::throwBadMethodCallException()
#1 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2540): Illuminate\\Database\\Eloquent\\Model->forwardCallTo()
#2 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(1124): Illuminate\\Database\\Eloquent\\Model->__call()
#3 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Relations/Relation.php(119): Illuminate\\Database\\Eloquent\\Builder->{closure:Illuminate\\Database\\Eloquent\\Concerns\\QueriesRelationships::getRelationWithoutConstraints():1123}()
#4 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(1123): Illuminate\\Database\\Eloquent\\Relations\\Relation::noConstraints()
#5 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Concerns/QueriesRelationships.php(46): Illuminate\\Database\\Eloquent\\Builder->getRelationWithoutConstraints()
#6 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Support/Traits/ForwardsCalls.php(23): Illuminate\\Database\\Eloquent\\Builder->has()
#7 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php(2540): Illuminate\\Database\\Eloquent\\Model->forwardCallTo()
#8 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Collections/Arr.php(265): Illuminate\\Database\\Eloquent\\Model->__call()
#9 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Collections/helpers.php(116): Illuminate\\Support\\Arr::exists()
#10 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(1124): data_get()
#11 [internal function]: Illuminate\\Support\\Collection->{closure:Illuminate\\Support\\Traits\\EnumeratesValues::operatorForWhere():1123}()
#12 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Collections/Arr.php(311): array_find_key()
#13 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Collections/Collection.php(432): Illuminate\\Support\\Arr::first()
#14 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(333): Illuminate\\Support\\Collection->first()
#15 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/Models/StoredWorkflow.php(149): Illuminate\\Support\\Collection->firstWhere()
#16 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/ActivityStub.php(32): Workflow\\Models\\StoredWorkflow->findLogByIndex()
#17 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/functions.php(58): Workflow\\ActivityStub::make()
#18 /var/www/vhosts//app/Workflows/AdsService/AdsApiPaginatedRequestWorkflow.php(37): Workflow\\activity()
#19 [internal function]: App\\Workflows\\AdsService\\AdsApiPaginatedRequestWorkflow->execute()
#20 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/Workflow.php(248): Generator->send()
#21 /var/www/vhosts//vendor/react/promise/src/Internal/FulfilledPromise.php(47): Workflow\\Workflow->{closure:Workflow\\Workflow::handle():245}()
#22 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/Workflow.php(245): React\\Promise\\Internal\\FulfilledPromise->then()
#23 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Workflow\\Workflow->handle()
#24 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Container/Util.php(43): Illuminate\\Container\\BoundMethod::{closure:Illuminate\\Container\\BoundMethod::call():35}()
#25 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(96): Illuminate\\Container\\Util::unwrapIfClosure()
#26 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\\Container\\BoundMethod::callBoundMethod()
#27 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Container/Container.php(799): Illuminate\\Container\\BoundMethod::call()
#28 /var/www/vhosts//vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(129): Illuminate\\Container\\Container->call()
...
Stacktrace Parent-Workflow
[2026-03-19 14:04:29] production.ERROR: Call to undefined method Workflow\Models\StoredWorkflowLog::index() {"exception":"[object] (BadMethodCallException(code: 0): Call to undefined method Workflow\\Models\\StoredWorkflowLog::index() at /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/ChildWorkflowStub.php:58)
[stacktrace]
#0 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/functions.php(65): Workflow\\ChildWorkflowStub::make()
#1 /var/www/vhosts//app/Workflows/AdsApi/SyncAdsEntitiesWorkflow.php(91): Workflow\\child()
#2 [internal function]: App\\Workflows\\AdsApi\\SyncAdsEntitiesWorkflow->execute()
#3 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/Workflow.php(248): Generator->send()
#4 /var/www/vhosts//vendor/react/promise/src/Internal/FulfilledPromise.php(47): Workflow\\Workflow->{closure:Workflow\\Workflow::handle():245}()
#5 /var/www/vhosts//vendor/laravel-workflow/laravel-workflow/src/Workflow.php(245): React\\Promise\\Internal\\FulfilledPromise->then()
...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels