{"repo":"KABBOUCHI/adonisjs-jobs","free":true,"listed":false,"github":"https://github.com/KABBOUCHI/adonisjs-jobs","clone":"git clone https://github.com/KABBOUCHI/adonisjs-jobs.git","description":"Job processing for AdonisJS","language":"TypeScript","stars":38,"topics":["adonisjs","background-jobs","bullmq","jobs","queue","redis"],"license":"MIT","category":"databases-storage","readme_excerpt":"AdonisJS Jobs Job processing for AdonisJS v6 using BullMQ Getting Started This package is available in the npm registry. Next, configure the package by running the following command. Creating Jobs You can create a new job by running the following command. Listening for Jobs First, you need to start the jobs listener, you can spawn multiple listeners to process jobs concurrently. Dispatching Jobs Dispatching jobs is as simple as importing the job class and calling Import Aliases (optional) update your package.json and tsconfig.json to use import aliases package.json tsconfig.json Jobs Dashboard You can view the jobs dashboard by adding the following route to your start/routes.ts file. router.jobs() returns a route group, you can add middleware to the group Tips Job Completion on Kubernetes In Kubernetes, prevent job termination by adjusting terminationGracePeriodSeconds (default is 30s) to allow jobs to finish gracefully. Experimental Features Dispatch Closure Alternative Ways to Run the Job Worker Besides using node ace jobs:listen , you can also manually initialize and control the job worker in your code:","default_branch":null,"files":null,"tree":[],"storefront":"/r/KABBOUCHI","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KABBOUCHI/adonisjs-jobs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}