mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix: support host storage paths and clean up cancelled deployments
Allow validated host file and directory mounts outside resource directories while protecting external paths from deletion. Clean up cancelled deployment containers and clear tracked process IDs. Preserve legacy KeyDB and Dragonfly password parsing, accept server backup paths without extension restrictions, and allow Compose variable proxy ports.
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('github_runner_executions', function (Blueprint $table) {
|
||||
$table->boolean('is_pull_request')->default(false)->after('labels');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('github_runner_executions', function (Blueprint $table) {
|
||||
$table->dropColumn('is_pull_request');
|
||||
});
|
||||
}
|
||||
};
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* ScheduledJobDeliveryService::ENQUEUED_STALE_AFTER_MINUTES when this migration was written.
|
||||
*/
|
||||
private const STALE_AFTER_MINUTES = 60;
|
||||
|
||||
/**
|
||||
* v4.3.23 left dropped overlapping jobs enqueued; stale recovery would report them as missed runs.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('scheduled_job_deliveries')
|
||||
->where('status', 'enqueued')
|
||||
->where('enqueued_at', '<', now()->subMinutes(self::STALE_AFTER_MINUTES))
|
||||
->update([
|
||||
'status' => 'skipped',
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
//
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user