AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Queue

skill-aiweline-welineframework-queue · by Aiweline

WelineFramework queue diagnostics and operations guide. Use when working on Weline\Queue, queue CLI commands, queue registration, queue_id/biz_key lookups, w_query('queue', ...) CRUD/stat queries, or failures involving queue:collect, queue:run, QueueInterface, and framework queue rows.

No reviews yet
0 installs
41 views
0.0% view→install

Install

$ agentstack add skill-aiweline-welineframework-queue

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-aiweline-welineframework-queue)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Queue? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Queue

Use this skill for WelineFramework queue inspection, repair, and operation in this source repository. Prefer the framework query provider and queue CLI over direct database poking unless source-level diagnosis requires model internals.

First Pass

  1. Read the current queue source before assuming docs are current:
  • app/code/Weline/Queue/extends/module/Weline_Framework/Query/QueueQueryProvider.php
  • app/code/Weline/Queue/Console/Queue/Collect.php
  • app/code/Weline/Queue/Console/Queue/Run.php
  • app/code/Weline/Queue/Console/Queue/Type/Listing.php
  • app/code/Weline/Queue/Model/Queue.php
  1. Use w_query('queue', ...) for runtime queue reads and business-level writes. Direct DB reads can miss framework casting, EAV/model behavior, event dispatching, and current query-provider semantics.
  2. Preserve side-effect boundaries. stats, get, getByBizKey, list, getTypeIdByClass, and queue:type:listing are diagnostic. create, update, delete, queue:collect, and queue:run change state or execute work.
  3. New cross-module consumers implement Weline\Queue\Api\QueueConsumerInterface and receive QueueTaskContextInterface. Weline\Queue\QueueInterface remains a runtime compatibility boundary for existing third-party consumers only.

Queue CLI

Use these commands from the repository root.

php bin/w queue:collect

Collect queue types from modules into weline_queue_type. Run this after adding or changing queue classes, or when getTypeIdByClass cannot resolve a class. The collector only registers instantiable classes that implement either the public Weline\Queue\Api\QueueConsumerInterface or the legacy Weline\Queue\QueueInterface; helper/static classes in a Queue/ directory are not queue implementations.

php bin/w queue:type:listing
php bin/w queue:type:listing ExampleQueue
php bin/w queue:type:listing Vendor_Module

List registered queue types. Extra arguments are search terms matched against name, module, and class.

php bin/w queue:run --id=77
php bin/w queue:run --id=77 -f
php bin/w queue:run --id=77 --force

Run one queue item by weline_queue.queue_id.

Use -f/--force only when intentionally taking over or rebuilding the same queue item. Current behavior:

  • If the same queue is marked running, force mode terminates the old same-ID process before continuing.
  • It injects _force_rebuild=1 into queue content when content is JSON.
  • It clears previous result and process so new logs are readable.

Do not cite queue:status as a real command unless the current source contains a command class for it.

w_query Examples

Bootstrap the app for ad hoc diagnostics:

php -r "require __DIR__ . '/app/bootstrap.php'; var_export(w_query('queue', 'stats'));"

Read one queue:

php -r "require __DIR__ . '/app/bootstrap.php'; print_r(w_query('queue', 'get', ['queue_id' => 77]));"

Find latest queue by business key:

php -r "require __DIR__ . '/app/bootstrap.php'; print_r(w_query('queue', 'getByBizKey', ['biz_key' => 'example:1']));"

List recent queues without dumping huge stream logs:

php -r "require __DIR__ . '/app/bootstrap.php'; $r=w_query('queue','list',['page_size'=>10]); foreach($r['items'] as $it){ $row=is_object($it)&&method_exists($it,'getData')?$it->getData():$it; echo json_encode(['queue_id'=>$row['queue_id']??null,'status'=>$row['status']??null,'module'=>$row['module']??null,'name'=>$row['name']??null,'biz_key'=>$row['biz_key']??null], JSON_UNESCAPED_UNICODE), PHP_EOL; }"

Filter by status or search text:

php -r "require __DIR__ . '/app/bootstrap.php'; $r=w_query('queue','list',['status'=>'error','q'=>'example','page_size'=>20]); foreach($r['items'] as $it){ $row=is_object($it)&&method_exists($it,'getData')?$it->getData():$it; echo ($row['queue_id']??'') . ' ' . ($row['status']??'') . ' ' . ($row['name']??'') . PHP_EOL; }"

Resolve a type id by class:

php -r "require __DIR__ . '/app/bootstrap.php'; var_export(w_query('queue','getTypeIdByClass',['class'=>'Vendor\\Module\\Queue\\ExampleQueue']));"

Create a queue through the provider:

php -r "require __DIR__ . '/app/bootstrap.php'; print_r(w_query('queue','create',['class'=>'Vendor\\Module\\Queue\\ExampleQueue','name'=>'Example task','module'=>'Vendor_Module','content'=>['foo'=>'bar'],'biz_key'=>'example:1']));"

Update a safe subset of fields:

php -r "require __DIR__ . '/app/bootstrap.php'; print_r(w_query('queue','update',['queue_id'=>77,'patch'=>['status'=>'pending','pid'=>0,'result'=>'','process'=>'']]));"

Delete only when intended:

php -r "require __DIR__ . '/app/bootstrap.php'; print_r(w_query('queue','delete',['queue_id'=>77]));"

Use force => true only when the queue is running and deletion is explicitly intended.

Provider Operations

w_query('queue', OP, PARAMS) currently supports:

  • get / load: require queue_id or id; return one queue row or null.
  • getByBizKey: require biz_key; return the latest matching row.
  • list: filters include page, page_size, module, status, type_id, queue_id, biz_key, and q; returns items and pagination.
  • stats: return counts for all, pending, running, done, error, and stop.
  • getTypeIdByClass: resolve a public or legacy queue consumer class to type_id; if missing, it runs collection internally.
  • create: require name, module, and either type_id or class; optional content, status, auto, biz_key.
  • update: locate by queue_id/id or biz_key; pass patch or top-level fields. Safe patch fields include name, module, status, content, result, process, biz_key, auto, finished, pid, and type_id.
  • delete: locate by queue_id/id or biz_key; running queues require force.

Valid statuses are pending, running, done, error, and stop.

Validation

After queue registration or consumer-contract filtering changes:

php -l app/code/Weline/Queue/Helper/Helper.php
php bin/w queue:collect
php bin/w queue:type:listing

After command behavior changes:

php bin/w queue:run --help
php bin/w queue:collect --help
php bin/w queue:type:listing --help

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.