{"id":25009313,"url":"https://github.com/tarantool-php/jobbuilder","last_synced_at":"2025-03-30T01:46:04.434Z","repository":{"id":49249298,"uuid":"173340985","full_name":"tarantool-php/jobbuilder","owner":"tarantool-php","description":"A set of utility classes to help creating complex jobs for Tarantool JobQueue.","archived":false,"fork":false,"pushed_at":"2022-10-11T19:29:53.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T19:16:44.836Z","etag":null,"topics":["job-builder","jobqueue","nosql","priority-queue","queue","scheduler","worker"],"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/tarantool-php.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["rybakit"]}},"created_at":"2019-03-01T17:19:16.000Z","updated_at":"2022-10-11T19:11:02.000Z","dependencies_parsed_at":"2022-08-24T14:01:39.879Z","dependency_job_id":null,"html_url":"https://github.com/tarantool-php/jobbuilder","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool-php%2Fjobbuilder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool-php%2Fjobbuilder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool-php%2Fjobbuilder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarantool-php%2Fjobbuilder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarantool-php","download_url":"https://codeload.github.com/tarantool-php/jobbuilder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246266246,"owners_count":20749754,"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":["job-builder","jobqueue","nosql","priority-queue","queue","scheduler","worker"],"created_at":"2025-02-05T04:39:14.097Z","updated_at":"2025-03-30T01:46:04.417Z","avatar_url":"https://github.com/tarantool-php.png","language":"PHP","readme":"# JobBuilder\n\n[![Quality Assurance](https://github.com/tarantool-php/jobbuilder/workflows/QA/badge.svg)](https://github.com/tarantool-php/jobbuilder/actions?query=workflow%3AQA)\n[![Telegram](https://img.shields.io/badge/Telegram-join%20chat-blue.svg)](https://t.me/tarantool_php)\n\nA set of utility classes to help creating complex jobs for [Tarantool JobQueue](https://github.com/tarantool-php/jobqueue).\n\n\n## Installation\n\nThe recommended way to create a new application is through [Composer](http://getcomposer.org):\n\n```sh\ncomposer require tarantool/jobbuilder\n```\n\n\n## Usage\n\n```php\nuse Tarantool\\JobQueue\\JobBuilder\\JobBuilder;\n\n...\n\n$task = JobBuilder::fromService('service_foo', ['bar', 'baz'])\n    -\u003ewithServiceMethod('qux')\n    -\u003ewithConstantBackoff()\n    -\u003ewithMaxRetries(3)\n    -\u003ewithRecurrenceIntervalSeconds(600)\n    -\u003ewithTimeToLiveSeconds(300)\n    -\u003ewithTimeToRunSeconds(180)\n    -\u003ewithPriority(4)\n    -\u003ewithDelaySeconds(60)\n    -\u003ewithTube('foobar')\n    -\u003eputTo($queue);\n```\n\n```php\nuse App\\Job\\MyJob\\MyJobHandler;\nuse Tarantool\\JobQueue\\JobBuilder\\JobBuilder;\nuse Tarantool\\JobQueue\\JobBuilder\\JobEmitter;\n\n...\n\n$jobBuilders = (static function () use ($ids) {\n    foreach ($ids as $id) {\n        yield JobBuilder::fromService(MyJobHandler::class, ['id' =\u003e $id]);\n    }\n})();\n\n(new JobEmitter())-\u003eemit($jobBuilders, $queue);\n```\n\n## Tests\n\n```bash\nvendor/bin/phpunit\n```\n\n\n## License\n\nThe library is released under the MIT License. See the bundled [LICENSE](LICENSE) file for details.\n","funding_links":["https://github.com/sponsors/rybakit"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool-php%2Fjobbuilder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarantool-php%2Fjobbuilder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarantool-php%2Fjobbuilder/lists"}