# ConX Queues
## Build Setup

```bash
# EMAIL JOBS 
## Sending of emails 
php artisan queue:work 'jobs_emails' --queue=sendemail

# LOAN AND BORROW LIST TRANSACTION JOBS 

## Everyday, update status of loan_borrow_lists table to Work in progress where date_to is equals today 
php artisan queue:work 'jobs_loan_borrow_lists' --queue=updatequeuingloanborrowliststatustoworkinprogress

## Everyday, update status of loan_borrow_lists table to Work in progress where date_to is equals today 
php artisan queue:work 'jobs_loan_borrow_lists' --queue=updatequeuingloanborrowliststatustoworkdon

# SUBSCRIPTION JOBS

##Check company monthly subscription expiration, if expired update to monthly expired
php artisan queue:work 'jobs_subscriptions' --queue=updateexpiredmonthlysubscription

##Check company subscription duration expiration, if expired update to expired
php artisan queue:work 'jobs_subscriptions' --queue=updateexpiredsubscription

##Check if company is to be blocked, when 28 days grace period has passed. then blocked
php artisan queue:work 'jobs_subscriptions' --queue=updateblockedsubscription

# COMPANY CART JOBS
## Delete (using softdelete) all records that are not submitted within the day from date of creation
php artisan queue:work 'jobs_carts' --queue=deleteunsubmittedcompanycart

# EXPIRED PENDING REQUEST OF WORKER
## Everyday, update status of loan_pending_workers and borrow_pending_workers table to Declined where date_from is equals to yesterday or the other days (In short, expired loan and borrow pending workers)
php artisan queue:work 'jobs_expired_requests' --queue=declinequeuingexpiredloanrequest


