• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Scheduled Tasks keep Running

Jay Clearvoyant

New Pleskian
Hi all,

So I was doing some tests with scheduled tasks and it appears for some reason my tasks keep on running...
If I visit my tasks manually over browser they just work fine.
It's an php script that does a few things but it doesn't output anything, or is it required for a task to output something?

I started the same task again in hopes that it might do the job but it still didn't.
(Screenshot:
68189dc45070b0b60c57ce54ab6c327a.png

Gyazo - 68189dc45070b0b60c57ce54ab6c327a.png )

The only way to end the tasks is by running the command "service psa restart" (restarting plesk itself).
Which then generates this error:
f6a875abd2c2ab03599cab8e45d09970.png

Gyazo - f6a875abd2c2ab03599cab8e45d09970.png

My version:
Plesk Onyx
Version 17.5.3 Update #27


Any idea guyes?

Thanks!
 
Actually, you can stop these stuck tasks without restarting psa service. Just go to Plesk database with

# plesk db

Find tasks in longtasks table:

mysql>select * from longtasks;

and delete these tasks.
but it doesn't output anything, or is it required for a task to output something?
Yes, I suppose these tasks should be ended with some kind of exit code, isn't it?
 
Back
Top