cron cli with extensions

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
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.
Post Reply
User avatar
rfdy
Registered User
Posts: 45
Joined: Wed Apr 16, 2014 2:28 pm

cron cli with extensions

Post by rfdy »

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.
Nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 299
Joined: Sun Apr 13, 2014 1:40 am
Location: Paris

Re: cron cli with extensions

Post by Nicofuma »

it is a cli issue: currently the cli doesn't load the extensions.
Member of the phpBB Development-Team
No Support via PM
User avatar
rfdy
Registered User
Posts: 45
Joined: Wed Apr 16, 2014 2:28 pm

Re: cron cli with extensions

Post by rfdy »

Should I add a jira for this, or is there one already?
Nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 299
Joined: Sun Apr 13, 2014 1:40 am
Location: Paris

Re: cron cli with extensions

Post by Nicofuma »

create a ticket for that please
Member of the phpBB Development-Team
No Support via PM
User avatar
rfdy
Registered User
Posts: 45
Joined: Wed Apr 16, 2014 2:28 pm

Re: cron cli with extensions

Post by rfdy »

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
Nicofuma
3.2 Release Manager
3.2 Release Manager
Posts: 299
Joined: Sun Apr 13, 2014 1:40 am
Location: Paris

Re: cron cli with extensions

Post by Nicofuma »

it the same things yes
Member of the phpBB Development-Team
No Support via PM
Post Reply