Skip to content

Runtask broken in new update #5570

@minexnode

Description

@minexnode

Current Behavior

RunTaskJob dont work

Expected Behavior

Runtakjob Works

Steps to Reproduce

Run a scedle/task

Panel Version

1.12.1

Wings Version

1.12

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

/var/www/pterodactyl/app/Jobs/Schedule/RunTaskJob.php

From:
$this->dispatch((new self($nextTask, $this->manualRun))->delay($nextTask->time_offset));

To:
self::dispatch($nextTask, $this->manualRun)->delay($nextTask->time_offset);


log:[2026-02-14 22:21:42] production.ERROR: Pterodactyl\Jobs\Schedule\RunTaskJob::__construct(): Argument #1 ($task) must be of type Pterodactyl\Models\Task, Pterodactyl\Jobs\Schedule\RunTaskJob given, called in /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php on line 19 {"userId":1,"exception":"[object] (TypeError(code: 0): Pterodactyl\\Jobs\\Schedule\\RunTaskJob::__construct(): Argument #1 ($task) must be of type Pterodactyl\\Models\\Task, Pterodactyl\\Jobs\\Schedule\\RunTaskJob given, called in /var/www/pterodactyl/vendor/laravel/framework/src/Illuminate/Foundation/Bus/Dispatchable.php on line 19 at /var/www/pterodactyl/app/Jobs/Schedule/RunTaskJob.php:21)

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue. I understand that maintainers may close this issue without communication if I have not provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions