{"id":27079012,"url":"https://github.com/netlogix/netlogix.migrations.jobqueue","last_synced_at":"2025-04-06T01:20:28.001Z","repository":{"id":54434242,"uuid":"329659326","full_name":"netlogix/Netlogix.Migrations.JobQueue","owner":"netlogix","description":"Asynchronously run netlogix/migrations","archived":false,"fork":false,"pushed_at":"2024-02-14T15:37:10.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-03-14T18:01:46.457Z","etag":null,"topics":["async","flow","jobqueue","migration"],"latest_commit_sha":null,"homepage":"https://websolutions.netlogix.de","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/netlogix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-14T15:41:51.000Z","updated_at":"2024-02-14T14:29:18.000Z","dependencies_parsed_at":"2024-02-14T16:50:19.877Z","dependency_job_id":null,"html_url":"https://github.com/netlogix/Netlogix.Migrations.JobQueue","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"56830df90d3a924af5fa095dc069bbfba0cabcf6"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FNetlogix.Migrations.JobQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FNetlogix.Migrations.JobQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FNetlogix.Migrations.JobQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2FNetlogix.Migrations.JobQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlogix","download_url":"https://codeload.github.com/netlogix/Netlogix.Migrations.JobQueue/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247421106,"owners_count":20936232,"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":["async","flow","jobqueue","migration"],"created_at":"2025-04-06T01:20:27.359Z","updated_at":"2025-04-06T01:20:27.988Z","avatar_url":"https://github.com/netlogix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Netlogix.Migrations.JobQueue\n\n## About Netlogix Migrations\n\nThis package provides the ability to run migrations of the `netlogix/migrations` package ([Netlogix.Migrations](https://github.com/netlogix/Netlogix.Migrations)) asynchronously. \n\n## Installation\n\n`composer require netlogix/migrations-jobqueue`\n\n## Configuration\n\nTo run a migration asynchronously, the Queue to be used needs to be defined:\n\n```yaml\nNetlogix:\n  Migrations:\n    JobQueue:\n      queueName: 'nlx-migrations'\n```\n\nThe queue (In this example `nlx-migrations`) must be configured in `Flowpack.JobQueue.Common` ([Check Github for more info](https://github.com/Flowpack/jobqueue-common))!\n\n\n## Usage\n\nSimply use the `AsyncMigration` interface in your migration:\n```php\n\u003c?php\ndeclare(strict_types=1);\n\nnamespace Netlogix\\Migrations\\Persistence\\Migrations;\n\nuse Netlogix\\Migrations\\JobQueue\\Domain\\Model\\AsyncMigration;\n\nclass Version20210114172342 implements AsyncMigration\n{\n\n    public function up(): void\n    {\n        // ...\n    }\n\n    public function down(): void\n    {\n        // ...\n    }\n\n}\n```\n\nWhen `./flow migrations:migrate` is run, the migration will instantly be marked as executed and an asynchronous job will be queued to the configured jobqueue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fnetlogix.migrations.jobqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlogix%2Fnetlogix.migrations.jobqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fnetlogix.migrations.jobqueue/lists"}