Add (initial): futurewalker code

This commit is contained in:
2023-11-20 00:15:18 +08:00
parent f8602cb456
commit 9ce3e5c82a
166 changed files with 15941 additions and 1072 deletions

View File

@@ -0,0 +1,38 @@
<?php
namespace App\Jobs;
use App\Jobs\Tasks\SchedulePublishTask;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class SchedulePublishPost implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
protected $post_id;
protected $status;
public $timeout = 30;
/**
* Create a new job instance.
*/
public function __construct($post_id, $status)
{
$this->post_id = $post_id;
$this->status = $status;
}
/**
* Execute the job.
*/
public function handle(): void
{
SchedulePublishTask::handle($this->post_id, $this->status);
}
}