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

feat: add support for chained jobs #54

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

michalsn
Copy link
Member

Description
This PR adds support for chained jobs. Developers can now chain multiple jobs in a sequence. This is particularly useful for breaking down complex workflows into smaller, more manageable tasks that must be executed in a specific order.

Jobs in a chain are stored in the metadata of the previous job. When a job is completed, the queue processor checks if there are any chained jobs in its metadata. If there are, it automatically processes the next job in the chain, preserving any specified priorities and delays.

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

@coveralls
Copy link

coveralls commented Mar 16, 2025

Pull Request Test Coverage Report for Build 13886627427

Details

  • 144 of 146 (98.63%) changed or added relevant lines in 11 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.4%) to 92.011%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/Commands/QueueWork.php 19 21 90.48%
Totals Coverage Status
Change from base Build 13153167064: 1.4%
Covered Lines: 668
Relevant Lines: 726

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

3 participants