Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks are not being run from the Control Panel #7773

Closed
lewisjenkins opened this issue Apr 7, 2021 · 7 comments
Closed

Tasks are not being run from the Control Panel #7773

lewisjenkins opened this issue Apr 7, 2021 · 7 comments
Labels

Comments

@lewisjenkins
Copy link

Description

Craft is not running tasks while logged in to the Control Panel. All tasks are marked as 'Pending' but they are not even being attempted. However, if I run ./craft queue/listen --verbose from the command line then the tasks will be run without issue. If I keep the listener running then I can continue to work normally in the Control Panel and all new tasks will run without issues. As soon as I stop the listener then the tasks will no longer run from the Control Panel.

My limited understanding of Craft is that clicking around the Control Panel should process any tasks in the queue. However, this does not appear to be happening.

I don't think this is an environment issue because I have other (slightly older) installs of Craft on the same server that work fine. This appears to be a new issue.

Steps to reproduce

  1. Install Craft
  2. Create a section (I created a Single for the homepage)
  3. Save the entry
  4. There should now be pending tasks

Additional info

  • Craft version: 3.6.11.2
  • PHP version: 7.4.3
  • Database driver & version: MySQL 8.0.22
  • Plugins & versions: None
@lewisjenkins
Copy link
Author

I've had a chance to do some further testing. I installed an older copy of CraftCMS 3.6.10 and couldn't reproduce this issue. I then installed a fresh copy of the next release 3.6.11 and immediately the issue appeared.

@brandonkelly
Copy link
Member

My limited understanding of Craft is that clicking around the Control Panel should process any tasks in the queue.

That’s correct, and it’s working on my end.

Perhaps you have the runQueueAutomatically config setting disabled?

@lewisjenkins
Copy link
Author

Thanks @brandonkelly. Here is a quick video demo of the issue.

https://www.youtube.com/watch?v=r7poojVqzPM

It's a fresh install and no settings are changed. As mentioned above, this issue started for me with 3.6.11.

@brandonkelly
Copy link
Member

@lewisjenkins Are you getting the same behavior in other browsers as well?

@lewisjenkins
Copy link
Author

@brandonkelly Tested in Edge, Chrome, Safari and also incognito mode in each. I have just sent you an email to support@pixelandtonic.com with login details.

brandonkelly added a commit that referenced this issue May 11, 2021
@brandonkelly
Copy link
Member

We tracked this down to the PCNTL extension being installed, but its functions being disabled via the disabled_functions PHP ini setting.

I PR’d a fix to yii2-queue (yiisoft/yii2-queue#414) and they’ve released it in v2.3.2. Just pulled that in for the next Craft release.

@brandonkelly
Copy link
Member

3.6.14 is out now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants