Repository navigation
First release: job queue, storage adapters, scheduler, worker and runner - #1
Merged
Merged
Conversation
Extracted from Smart License Server's background jobs engine into the Callismart\Background namespace, with the queue storage as a contract and four adapters: database (DBPrism), Redis, file and in-memory. All pass one contract test suite, including concurrent workers. The scheduler keeps its state through a store interface and supports time zones; the worker builds handlers through a PSR-11 container, a callback or new $class(); the runner takes a pause signal and keeps heartbeats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BWezTj9wtraoPhmyd5hNtG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
First release of
callismart/background: Smart License Server's background jobs engine, extracted so any app can reuse it.JobStorageAdapterInterface). It ships four adapters:new $class(). It stops cleanly on SIGTERM and SIGINT, and works within a time budget for cron and web requests.PauseSignalInterface, a lock, amin_intervalthrottle, andBackgroundStatusheartbeats.callismart/cacheandcallismart/mail.Fixes compared with the code in smliser
These will reach smliser when it switches to the package:
[]; it is now stored as any JSON value.remove_job()returned true even when nothing was deleted.Tests
composer cs:checkis clean.After merging
v1.0.0and submit the package to Packagist.CodeChangeDetectorpause signal, settings-backed scheduler state, the core tasks, translations, and the changelog.Generated by Claude Code