Git Product home page Git Product logo

Comments (6)

randomor avatar randomor commented on July 24, 2024

Currently I'm having this in global.php:

App::error(function(Exception $exception, $code)
{

    //Remove `cron.lock` file after exception.
    $storagePath = "";
    // Fallback function for Laravel3 with helper function path('storage')
    if (function_exists('storage_path')) {
        $storagePath = storage_path();
    } else if (function_exists('path')) {
        $storagePath = path('storage');
    }

    if (!empty($storagePath)) {

        $lockFile = $storagePath . DIRECTORY_SEPARATOR . 'cron.lock';

        if (file_exists($lockFile)) {
            unlink($lockFile);
            Logger::warning('Deleted `cron.lock` file after exception.');
        }
    }

    Log::error($exception);
});

from cron.

liebig avatar liebig commented on July 24, 2024

Hi Randomor,
Thanks for using Cron. Actually, you should not worry about deleting the cron.lock file. I will add a try-catch block around the run method. I will change this in the next few days.

from cron.

randomor avatar randomor commented on July 24, 2024

@liebig That's great news. :> Thanks for the awesome library!

from cron.

liebig avatar liebig commented on July 24, 2024

Okay, it is done! Please update to head and test. Thank you for your patience

from cron.

liebig avatar liebig commented on July 24, 2024

Closed due to inactivity.

from cron.

randomor avatar randomor commented on July 24, 2024

Deployed for more than a week. I think it works. Thanks so much for the great work!


Sent from Mailbox

On Mon, Oct 13, 2014 at 1:43 AM, liebig [email protected] wrote:

Closed #40.

Reply to this email directly or view it on GitHub:
#40 (comment)

from cron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.