codeigniter4 / codeigniter4/tasks

Extending Tasks

Open
#34 2 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
126
Forks
24
PR merge metrics
No merged PRs in 30d

Description

Defining tasks solely in the Config file's `init()` method requires a single entry point for all scheduling. It might be good to offer a way to extend this to libraries and modules, so (for example) an Auth library could "register" its own tasks for periodic cleanup of spam accounts.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing how tasks are currently defined through the Config file's init() method and how scheduling consumes that single entry point. Define what an extension mechanism for libraries and modules would need to support, including an Auth library registering periodic cleanup tasks. Done means task registration is no longer limited to one central configuration entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.