remove unnecessary queue
This commit is contained in:
parent
ba55e0c1bb
commit
075f3ce930
@ -41,11 +41,11 @@ function queue_application_deployment(int $application_id, string $deployment_uu
|
|||||||
dispatch(new ApplicationDeploymentNewJob(
|
dispatch(new ApplicationDeploymentNewJob(
|
||||||
deployment: $deployment,
|
deployment: $deployment,
|
||||||
application: Application::find($application_id)
|
application: Application::find($application_id)
|
||||||
))->onConnection('long-running')->onQueue('long-running');
|
));
|
||||||
} else {
|
} else {
|
||||||
dispatch(new ApplicationDeploymentJob(
|
dispatch(new ApplicationDeploymentJob(
|
||||||
application_deployment_queue_id: $deployment->id,
|
application_deployment_queue_id: $deployment->id,
|
||||||
))->onConnection('long-running')->onQueue('long-running');
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,11 +57,11 @@ function queue_next_deployment(Application $application, bool $isNew = false)
|
|||||||
dispatch(new ApplicationDeploymentNewJob(
|
dispatch(new ApplicationDeploymentNewJob(
|
||||||
deployment: $next_found,
|
deployment: $next_found,
|
||||||
application: $application
|
application: $application
|
||||||
))->onConnection('long-running')->onQueue('long-running');
|
));
|
||||||
} else {
|
} else {
|
||||||
dispatch(new ApplicationDeploymentJob(
|
dispatch(new ApplicationDeploymentJob(
|
||||||
application_deployment_queue_id: $next_found->id,
|
application_deployment_queue_id: $next_found->id,
|
||||||
))->onConnection('long-running')->onQueue('long-running');
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -190,17 +190,6 @@
|
|||||||
'maxJobs' => 0,
|
'maxJobs' => 0,
|
||||||
'memory' => 128,
|
'memory' => 128,
|
||||||
'tries' => 1,
|
'tries' => 1,
|
||||||
'timeout' => 300,
|
|
||||||
'nice' => 0,
|
|
||||||
],
|
|
||||||
'long-running' => [
|
|
||||||
'connection' => 'redis',
|
|
||||||
'queue' => ['long-running'],
|
|
||||||
'balance' => 'auto',
|
|
||||||
'maxTime' => 0,
|
|
||||||
'maxJobs' => 0,
|
|
||||||
'memory' => 128,
|
|
||||||
'tries' => 1,
|
|
||||||
'timeout' => 3560,
|
'timeout' => 3560,
|
||||||
'nice' => 0,
|
'nice' => 0,
|
||||||
],
|
],
|
||||||
@ -209,12 +198,6 @@
|
|||||||
'environments' => [
|
'environments' => [
|
||||||
'production' => [
|
'production' => [
|
||||||
's6' => [
|
's6' => [
|
||||||
'autoScalingStrategy' => 'size',
|
|
||||||
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 2),
|
|
||||||
'balanceMaxShift' => env('HORIZON_BALANCE_MAX_SHIFT', 1),
|
|
||||||
'balanceCooldown' => env('HORIZON_BALANCE_COOLDOWN', 1),
|
|
||||||
],
|
|
||||||
'long-running' => [
|
|
||||||
'autoScalingStrategy' => 'size',
|
'autoScalingStrategy' => 'size',
|
||||||
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 6),
|
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 6),
|
||||||
'balanceMaxShift' => env('HORIZON_BALANCE_MAX_SHIFT', 1),
|
'balanceMaxShift' => env('HORIZON_BALANCE_MAX_SHIFT', 1),
|
||||||
@ -224,12 +207,6 @@
|
|||||||
|
|
||||||
'local' => [
|
'local' => [
|
||||||
's6' => [
|
's6' => [
|
||||||
'autoScalingStrategy' => 'size',
|
|
||||||
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 2),
|
|
||||||
'balanceMaxShift' => env('HORIZON_BALANCE_MAX_SHIFT', 1),
|
|
||||||
'balanceCooldown' => env('HORIZON_BALANCE_COOLDOWN', 1),
|
|
||||||
],
|
|
||||||
'long-running' => [
|
|
||||||
'autoScalingStrategy' => 'size',
|
'autoScalingStrategy' => 'size',
|
||||||
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 6),
|
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 6),
|
||||||
'balanceMaxShift' => env('HORIZON_BALANCE_MAX_SHIFT', 1),
|
'balanceMaxShift' => env('HORIZON_BALANCE_MAX_SHIFT', 1),
|
||||||
|
@ -33,14 +33,6 @@
|
|||||||
'sync' => [
|
'sync' => [
|
||||||
'driver' => 'sync',
|
'driver' => 'sync',
|
||||||
],
|
],
|
||||||
'long-running' => [
|
|
||||||
'driver' => 'redis',
|
|
||||||
'connection' => 'default',
|
|
||||||
'queue' => 'long-running',
|
|
||||||
'retry_after' => 3600,
|
|
||||||
'block_for' => null,
|
|
||||||
'after_commit' => true,
|
|
||||||
],
|
|
||||||
'database' => [
|
'database' => [
|
||||||
'driver' => 'database',
|
'driver' => 'database',
|
||||||
'table' => 'jobs',
|
'table' => 'jobs',
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
// The release version of your application
|
// The release version of your application
|
||||||
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
||||||
'release' => '4.0.0-beta.175',
|
'release' => '4.0.0-beta.176',
|
||||||
// When left empty or `null` the Laravel environment will be used
|
// When left empty or `null` the Laravel environment will be used
|
||||||
'environment' => config('app.env'),
|
'environment' => config('app.env'),
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return '4.0.0-beta.175';
|
return '4.0.0-beta.176';
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"version": "3.12.36"
|
"version": "3.12.36"
|
||||||
},
|
},
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.175"
|
"version": "4.0.0-beta.176"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user