• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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