Skip to content

Laravel recipe artisan:migrate task does not honor default_timeout = null #3371

@calebdw

Description

@calebdw
  • Deployer version: 7.0.2
  • Deployment OS: Ubuntu 20
deploy.php
<?php

namespace Deployer;

require 'recipe/laravel.php';

set('default_timeout', null); // because of long-running migrations
set('shared_dirs', [
    'storage',
    'uploads',
]);

host('<host>')
    ->setLabels([
        'stage' => 'staging',
    ])
    ->setRemoteUser('<user>')
    ->setDeployPath('<path>');

task('deploy', [
    'deploy:prepare',
    'artisan:storage:link',
    'artisan:optimize:clear', // clear all caches
    'artisan:config:cache',
    'artisan:route:cache',
    'artisan:view:cache',
    'artisan:event:cache',
    'artisan:down',
    'artisan:migrate',
    'deploy:symlink',
    'artisan:up',
    'artisan:horizon:terminate',
    'deploy:unlock',
    'deploy:cleanup',
    'deploy:success',
]);

after('deploy:failed', 'deploy:unlock');

Hello, I recently upgraded to Deployer 7 and I just encountered a long-running migration that caused the deploy to fail after 300 seconds, despite default_timeout being set to null.

This used to work in Deployer 6 so not too sure what's going on...

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions