Skip to content

This package will take care of Queue from Cron Job it self.

License

Notifications You must be signed in to change notification settings

rakshitbharat/queuefy

Repository files navigation

Queuefy

Latest Version on Packagist Quality Score Total Downloads

Queuefy is a versatile package designed to facilitate queue handling directly from cron jobs, ideal for environments with specific constraints. Whether you're on a shared server, lacking supervisor config file access, or unable to install supervisor, Queuefy offers a robust solution. It's perfect for those who can manage cron jobs but face restrictions with more traditional queue management approaches.

Features

  • Simple Integration: Easy to set up with just a few commands.
  • Versatile Usage: Works on shared servers and environments without supervisor.
  • Custom Queue Support: Offers the ability to add custom queue commands via environment variables.

Installation

Install Queuefy with Composer to streamline queue management on your server:

composer require rakshitbharat/queuefy

Usage

To use Queuefy, simply run the following command from your console. This will initiate a single queue thread:

php artisan queue:work --timeout=0

For custom queue commands, add your preferred command to your .env file like so:

QUEUE_COMMAND_AFTER_PHP_ARTISAN="your_custom_command"

TO STOP RUNNING OF QUE, add your preferred command to your .env file like so:

by Default it will be false
STOP_QUEUE=true

This is especially useful for shared hosting environments, or when you're unable to use traditional supervisor configurations for queue management.

Changelog

For a detailed history of changes and improvements, refer to the CHANGELOG.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. Please see CONTRIBUTING for guidelines on how to get involved.

Security

If you encounter any security issues, please send an email to [email protected] instead of using the public issue tracker.

Credits

License

Queuefy is open-sourced software licensed under the MIT License. Feel free to explore, modify, and distribute as you see fit.