added assets queue

This commit is contained in:
2021-05-19 01:05:17 +09:00
parent 9c9575396b
commit 11ac571abb
8 changed files with 31 additions and 10 deletions
@@ -45,6 +45,7 @@ class FetchAllianceStructures implements ShouldQueue
{
//Set the connection for the job
$this->connection = 'redis';
$this->onQueue('structures');
}
@@ -56,6 +56,15 @@ class PurgeAllianceStructures implements ShouldQueue
Structure::truncate();
Service::truncate();
FetchAllianceStructures::dispatch()->onQueue('structures');
FetchAllianceStructures::dispatch();
}
/**
* Set the tags for the job
*
* @var array
*/
public function tags() {
return ['PurgeAllianceStructures', 'AllianceStructures', 'Structures'];
}
}