I just tried creating a cron in my extension. It runs via the web-based cron, but when using the CLI the cron doesn't run. I tried debugging a bit and noticed that the task doesn't appear in the list of service collection even though it is tagged correctly in the config.yml file. Moving the definition into config/cron_tasks.yml worked, which suggests that the CLI task runner doesn't load extensions.
Is this correct? I couldn't find anything in jira about this issue.
cron cli with extensions
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Re: cron cli with extensions
it is a cli issue: currently the cli doesn't load the extensions.
Member of the phpBB Development-Team
No Support via PM
No Support via PM
Re: cron cli with extensions
Should I add a jira for this, or is there one already?
Re: cron cli with extensions
create a ticket for that please
Member of the phpBB Development-Team
No Support via PM
No Support via PM
Re: cron cli with extensions
A jira for this has been created here: https://tracker.phpbb.com/browse/PHPBB3-12686
I wonder if it's related to https://tracker.phpbb.com/browse/PHPBB3-12685
I wonder if it's related to https://tracker.phpbb.com/browse/PHPBB3-12685
Re: cron cli with extensions
it the same things yes
Member of the phpBB Development-Team
No Support via PM
No Support via PM