Repository navigation
#45 - Give a code to the custom cache task example - #46
Merged
Merged
Conversation
The DeleteTask example gets a code with #[AsTask(code: 'app_cache_delete')], relies on autoconfiguration (non-shared, cleverage_process_task logger channel, code tag) instead of a public service, and is used in a process with "task: app_cache_delete". Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Description
Fixes #45: the "Custom cache tasks" example of
docs/index.mddeclaredApp\Task\DeleteTaskas a public service without code, so it could only be referenced by its service, deprecated sincecleverage/process-bundle5.4 (cleverage/process-bundle#91, #43).#[AsTask(code: 'app_cache_delete')]on the task (prefixed, as recommended for the application tasks).autoconfigure: true(non-shared,cleverage_process_tasklogger channel,cleverage.tasktag with the code) instead ofpublic: true/shared: false; the adapter registry is still passed explicitly (it has no class alias for autowiring).task: app_cache_delete.Checks
Example copied as is in the demo project (process-bundle and cache-process-bundle
main), then removed:debug:containershows thecleverage.task(codeapp_cache_delete) andmonolog.loggertags, not shared; a processcache_set→app_cache_delete→cache_getsucceeds andcache_getreturnsnullafter the deletion.Requirements
Breaking changes
None (documentation only).
🤖 Generated with Claude Code