{"id":21400239,"url":"https://github.com/oefenweb/cakephp-queue","last_synced_at":"2025-07-13T21:31:02.251Z","repository":{"id":8951729,"uuid":"10688610","full_name":"Oefenweb/cakephp-queue","owner":"Oefenweb","description":"A minimalistic Queue Plugin for CakePHP","archived":false,"fork":false,"pushed_at":"2023-01-17T15:28:51.000Z","size":247,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-25T05:01:43.709Z","etag":null,"topics":["cakephp","cakephp2","php","plugin","queue"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-14T12:36:19.000Z","updated_at":"2020-08-17T14:31:51.000Z","dependencies_parsed_at":"2023-02-10T10:31:00.986Z","dependency_job_id":null,"html_url":"https://github.com/Oefenweb/cakephp-queue","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/cakephp-queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225917590,"owners_count":17544922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cakephp","cakephp2","php","plugin","queue"],"created_at":"2024-11-22T15:20:01.325Z","updated_at":"2024-11-22T15:20:01.792Z","avatar_url":"https://github.com/Oefenweb.png","language":"PHP","readme":"# Queue plugin for CakePHP\n\n[![Build Status](https://travis-ci.org/Oefenweb/cakephp-queue.png?branch=master)](https://travis-ci.org/Oefenweb/cakephp-queue)\n[![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/cakephp-queue/badge.svg)](https://travis-ci.org/Oefenweb/cakephp-queue)\n[![Coverage Status](https://codecov.io/gh/Oefenweb/cakephp-queue/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/cakephp-queue)\n[![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/cakephp-queue.svg)](https://packagist.org/packages/oefenweb/cakephp-queue)\n[![Code Climate](https://codeclimate.com/github/Oefenweb/cakephp-queue/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/cakephp-queue)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Oefenweb/cakephp-queue/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Oefenweb/cakephp-queue/?branch=master)\n\n## Requirements\n\n* CakePHP 2.9.0 or greater.\n* PHP 7.0.0 or greater.\n\n## Installation\n\nClone/Copy the files in this directory into `app/Plugin/Queue`\n\n## Configuration\n\nEnsure the plugin is loaded in `app/Config/bootstrap.php` by calling:\n\n```\nCakePlugin::load('Queue');\n```\n\nEnsure to configure the following lines in `app/Config/bootstrap.php`:\n\n```\nConfigure::write('Queue.workers', 3);\nConfigure::write('Queue.sleepTime', 10);\nConfigure::write('Queue.gcprop', 10);\nConfigure::write('Queue.defaultWorkerTimeout', 2 * MINUTE);\nConfigure::write('Queue.defaultWorkerRetries', 4);\nConfigure::write('Queue.workerMaxRuntime', 0);\nConfigure::write('Queue.cleanupTimeout', DAY);\nConfigure::write('Queue.exitWhenNothingToDo', false);\nConfigure::write('Queue.gcOnExit', true);\n```\n\nLoad schema:\n\n```\nConsole/cake schema create;\n```\n\n## Usage\n\n### Console\n\nRun from your APP folder:\n\n```\n# Tries to call the `add()` function on a task.\nConsole/cake Queue.queue add \u003ctaskname\u003e;\n```\n\n```\n# Run a queue worker.\nConsole/cake Queue.queue runworker;\n```\n\n```\n# Display some general statistics.\nConsole/cake Queue.queue stats;\n```\n\n```\n# Manually call cleanup function to delete task data of completed tasks.\nConsole/cake Queue.queue clean;\n```\n\n```\n# Manually call cleanup_failed function to delete task data of failed tasks.\nConsole/cake Queue.queue clean_failed;\n```\n\n#### Running only specific tasks per worker\nYou can filter \"running\" by type:\n\n```\nConsole/cake Queue.queue runworker -t MyType,AnotherType,-ThisOneToo\nConsole/cake Queue.queue runworker -t \"-ThisOneNot\"\n```\n\nUse `-` prefix to exclude. Note that you might need to use `\"\"` around the value then to avoid it being seen as option key.\n\nThat can be helpful when migrating servers and you only want to execute certain ones on the new system or want to test specific servers.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fcakephp-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fcakephp-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fcakephp-queue/lists"}