feat(Deployment): Integrate Ansible deployment via PHP deployment pipeline
- Create AnsibleDeployStage using framework's Process module for secure command execution - Integrate AnsibleDeployStage into DeploymentPipelineCommands for production deployments - Add force_deploy flag support in Ansible playbook to override stale locks - Use PHP deployment module as orchestrator (php console.php deploy:production) - Fix ErrorAggregationInitializer to use Environment class instead of $_ENV superglobal Architecture: - BuildStage → AnsibleDeployStage → HealthCheckStage for production - Process module provides timeout, error handling, and output capture - Ansible playbook supports rollback via rollback-git-based.yml - Zero-downtime deployments with health checks
This commit is contained in:
@@ -337,8 +337,9 @@ final readonly class FileQueue implements Queue
|
||||
private function generatePriorityFilename(float $score): string
|
||||
{
|
||||
$scoreStr = str_pad((string) (int) ($score * 1000000), 15, '0', STR_PAD_LEFT);
|
||||
$generator = new \App\Framework\Ulid\UlidGenerator();
|
||||
|
||||
return "job_{$scoreStr}_" . uniqid() . '.json';
|
||||
return "job_{$scoreStr}_" . $generator->generate() . '.json';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -346,7 +347,8 @@ final readonly class FileQueue implements Queue
|
||||
*/
|
||||
private function generateDelayedFilename(int $availableTime): string
|
||||
{
|
||||
return "delayed_{$availableTime}_" . uniqid() . '.json';
|
||||
$generator = new \App\Framework\Ulid\UlidGenerator();
|
||||
return "delayed_{$availableTime}_" . $generator->generate() . '.json';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user