Current Behavior
I have a few schedules configured, all with a single task: Creating a backup. However, while the first run works without a problem, it never runs the task again, because the field is_processing in the tasks table stays on 1 even after a successful run.
Expected Behavior
It looks like the code never updates the database itself when resetting the is_processing field. The corresponding line only updates the task object in PHP, but does not touch the database:
|
$this->task->update(['is_processing' => false]); |
I don't know everything about this codebase, but changing the above line to the following, fixes the issue:
Task::where('id', $this->task->id)->update(['is_processing' => false]);
Steps to Reproduce
- Create a schedule with a backup task
- Run the schedule
- Try to run the schedule again
Panel Version
5.0.5
Panel Installation Type
Daemon Version
1.3.0
Daemon Installation Type
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
After the first successful run, the following message appears in the logs, because is_processing is still set to 1:
[2026-06-07 04:00:03] production.WARNING: Backup task already processing, skipping {"task_id":33,"schedule_id":21,"server_id":8}
[2026-06-07 06:00:06] production.WARNING: Backup task already processing, skipping {"task_id":34,"schedule_id":31,"server_id":13}
[2026-06-07 06:05:03] production.WARNING: Backup task already processing, skipping {"task_id":36,"schedule_id":33,"server_id":15}
[2026-06-07 06:20:22] production.WARNING: Backup task already processing, skipping {"task_id":37,"schedule_id":34,"server_id":16}
[2026-06-07 06:30:04] production.WARNING: Backup task already processing, skipping {"task_id":35,"schedule_id":32,"server_id":6
Is there an existing issue for this?
Current Behavior
I have a few schedules configured, all with a single task: Creating a backup. However, while the first run works without a problem, it never runs the task again, because the field
is_processingin thetaskstable stays on1even after a successful run.Expected Behavior
It looks like the code never updates the database itself when resetting the
is_processingfield. The corresponding line only updates the task object in PHP, but does not touch the database:pyrodactyl/app/Jobs/Schedule/RunTaskJob.php
Line 115 in b7d3691
I don't know everything about this codebase, but changing the above line to the following, fixes the issue:
Steps to Reproduce
Panel Version
5.0.5
Panel Installation Type
Daemon Version
1.3.0
Daemon Installation Type
Games and/or Eggs Affected
No response
Docker Image
No response
Error Logs
Is there an existing issue for this?