laravel-cronless-schedule | Run the Laravel scheduler without relying on cron | Cron Utils library

 by   spatie PHP Version: 1.1.1 License: MIT

kandi X-RAY | laravel-cronless-schedule Summary

kandi X-RAY | laravel-cronless-schedule Summary

laravel-cronless-schedule is a PHP library typically used in Utilities, Cron Utils applications. laravel-cronless-schedule has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Run the Laravel scheduler without relying on cron
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              laravel-cronless-schedule has a low active ecosystem.
              It has 322 star(s) with 14 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 6 have been closed. On average issues are closed in 82 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of laravel-cronless-schedule is 1.1.1

            kandi-Quality Quality

              laravel-cronless-schedule has 0 bugs and 0 code smells.

            kandi-Security Security

              laravel-cronless-schedule has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              laravel-cronless-schedule code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              laravel-cronless-schedule is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              laravel-cronless-schedule releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              laravel-cronless-schedule saves you 39 person hours of effort in developing the same functionality from scratch.
              It has 105 lines of code, 13 functions and 3 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of laravel-cronless-schedule
            Get all kandi verified functions for this library.

            laravel-cronless-schedule Key Features

            No Key Features are available at this moment for laravel-cronless-schedule.

            laravel-cronless-schedule Examples and Code Snippets

            No Code Snippets are available at this moment for laravel-cronless-schedule.

            Community Discussions

            QUESTION

            How does it work ? Laravel Schedule Customized with Spatie/laravel-cronless-schedule
            Asked 2021-Feb-14 at 10:03

            I'm using laravel schedule with Spatie/laravel-cronless-schedule package. PHP 7.4 & Laravel 5.6.

            I have a confusion that how does it work with time & overlapping.

            I have done so far.

            ...

            ANSWER

            Answered 2021-Feb-14 at 10:03

            TL;DR: It might work the way you expect it. But I from your description I would say you should use Laravels Queues.

            If you declare a everyMinute(), in fact this will make laravel run this event on every call of php artisan schedule:run. If you declare it everyFiveMinutes(), it will execute the command on every minute that is divisible by 5 with every call of schedule:run. The Laravel Scheduler is built to be run exactly once per minute.

            The spatie-package, as it clearly says, is made for testing environments.

            Laravel's native scheduler relies on cron to be executed every minute. It's rock solid and in most cases you should stick to using it. I advise you not to use it for production. Also the frequency-argument is obviously ment if you do some testing, to reduce the time you have to wait for an action. Again, you should not depend on it for an production enviroment.

            By using withoutOverlapping() you will eliminate some of the side-effects from running it more frequently. It will work the job through, and will not start a new one if the previous one is still processing.

            However, I think it's pretty obvious that you are using the wrong tool in Laravel to process potentially slow tasks. Lets take your first command api:elite-send-sms for an example. I'm pretty sure you do not want to send the sms every 5 seconds. You would like to send it on an event, and that's what Laravel Queues are for. On the event, you will dispatch a job to the queue, and immidiatelly finish the request, without waiting for the job to be executed.

            You can still use queues, even if your environment can not use redis and Laravel Horizon. But if you can use Horizon, it will make easier for you (after spending a day learning about it).

            Source https://stackoverflow.com/questions/66192726

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install laravel-cronless-schedule

            You can install the package via composer. Probably you only want to use this schedule in a development environment.

            Support

            We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products. We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/spatie/laravel-cronless-schedule.git

          • CLI

            gh repo clone spatie/laravel-cronless-schedule

          • sshUrl

            git@github.com:spatie/laravel-cronless-schedule.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Cron Utils Libraries

            cron

            by robfig

            node-schedule

            by node-schedule

            agenda

            by agenda

            node-cron

            by kelektiv

            cron-expression

            by mtdowling

            Try Top Libraries by spatie

            laravel-permission

            by spatiePHP

            laravel-backup

            by spatiePHP

            browsershot

            by spatiePHP