mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-18 04:21:27 +00:00
Merge pull request #5231 from pixelfed/staging
Update DeleteRemoteProfile command
This commit is contained in:
commit
e3609964d0
2 changed files with 11 additions and 9 deletions
|
@ -2,11 +2,12 @@
|
||||||
|
|
||||||
namespace App\Console\Commands;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
use Illuminate\Console\Command;
|
|
||||||
use App\Profile;
|
|
||||||
use App\Jobs\DeletePipeline\DeleteRemoteProfilePipeline;
|
use App\Jobs\DeletePipeline\DeleteRemoteProfilePipeline;
|
||||||
use function Laravel\Prompts\search;
|
use App\Profile;
|
||||||
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
use function Laravel\Prompts\confirm;
|
use function Laravel\Prompts\confirm;
|
||||||
|
use function Laravel\Prompts\search;
|
||||||
|
|
||||||
class DeleteRemoteProfile extends Command
|
class DeleteRemoteProfile extends Command
|
||||||
{
|
{
|
||||||
|
@ -43,7 +44,7 @@ class DeleteRemoteProfile extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
$confirmed = confirm('Are you sure you want to delete '.$profile->username.'\'s account? This action cannot be reversed.');
|
$confirmed = confirm('Are you sure you want to delete '.$profile->username.'\'s account? This action cannot be reversed.');
|
||||||
DeleteRemoteProfilePipeline::dispatch($profile)->onQueue('delete');
|
DeleteRemoteProfilePipeline::dispatch($profile)->onQueue('adelete');
|
||||||
$this->info('Dispatched delete job, it may take a few minutes...');
|
$this->info('Dispatched delete job, it may take a few minutes...');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,6 +90,7 @@ return [
|
||||||
'redis:story' => 30,
|
'redis:story' => 30,
|
||||||
'redis:mmo' => 30,
|
'redis:mmo' => 30,
|
||||||
'redis:intbg' => 30,
|
'redis:intbg' => 30,
|
||||||
|
'redis:adelete' => 30,
|
||||||
'redis:groups' => 30,
|
'redis:groups' => 30,
|
||||||
],
|
],
|
||||||
|
|
||||||
|
@ -174,7 +175,7 @@ return [
|
||||||
'production' => [
|
'production' => [
|
||||||
'supervisor-1' => [
|
'supervisor-1' => [
|
||||||
'connection' => 'redis',
|
'connection' => 'redis',
|
||||||
'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups'],
|
'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups', 'adelete'],
|
||||||
'balance' => env('HORIZON_BALANCE_STRATEGY', 'auto'),
|
'balance' => env('HORIZON_BALANCE_STRATEGY', 'auto'),
|
||||||
'minProcesses' => env('HORIZON_MIN_PROCESSES', 1),
|
'minProcesses' => env('HORIZON_MIN_PROCESSES', 1),
|
||||||
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 20),
|
'maxProcesses' => env('HORIZON_MAX_PROCESSES', 20),
|
||||||
|
@ -188,7 +189,7 @@ return [
|
||||||
'local' => [
|
'local' => [
|
||||||
'supervisor-1' => [
|
'supervisor-1' => [
|
||||||
'connection' => 'redis',
|
'connection' => 'redis',
|
||||||
'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups'],
|
'queue' => ['high', 'default', 'follow', 'shared', 'inbox', 'feed', 'low', 'story', 'delete', 'mmo', 'intbg', 'groups', 'adelete'],
|
||||||
'balance' => 'auto',
|
'balance' => 'auto',
|
||||||
'minProcesses' => 1,
|
'minProcesses' => 1,
|
||||||
'maxProcesses' => 20,
|
'maxProcesses' => 20,
|
||||||
|
|
Loading…
Reference in a new issue