Skip to content

feat: add queue task type to scheduler #186

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

michalsn
Copy link
Member

@michalsn michalsn commented Apr 25, 2025

Description
This PR adds support for scheduling queue jobs using the queue() method.

It also introduces compatibility with the singleInstance() option, allowing job locking behavior to prevent duplicate job runs. The lock is applied when the job is queued and remains until the job is completed, with an optional TTL to manage job locking time. The details are described in the updated documentation.

This feature requires corresponding changes in the queue package to function properly: codeigniter4/queue#60

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

@michalsn michalsn added the enhancement New feature or request label Apr 25, 2025
@coveralls
Copy link

coveralls commented Apr 25, 2025

Pull Request Test Coverage Report for Build 14824573624

Details

  • 11 of 11 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.5%) to 77.204%

Totals Coverage Status
Change from base Build 14611406970: 0.5%
Covered Lines: 359
Relevant Lines: 465

💛 - Coveralls

@michalsn michalsn merged commit a4db0d1 into codeigniter4:develop May 5, 2025
27 checks passed
@michalsn
Copy link
Member Author

michalsn commented May 5, 2025

Thank you @lonnieezell and @paulbalandan

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

Successfully merging this pull request may close these issues.

4 participants