From f722eaee8e634097ac105c2c173588bc3f8a6b6f Mon Sep 17 00:00:00 2001 From: denghy Date: Mon, 19 Nov 2018 09:28:13 +0800 Subject: [PATCH] failed jobs --- app/Domains/Real/Commands/Sync/Command.php | 5 +++ ..._11_16_190020_create_failed_jobs_table.php | 35 +++++++++++++++++++ vendor/composer/autoload_classmap.php | 1 + vendor/composer/autoload_static.php | 1 + 4 files changed, 42 insertions(+) create mode 100644 database/migrations/2018_11_16_190020_create_failed_jobs_table.php diff --git a/app/Domains/Real/Commands/Sync/Command.php b/app/Domains/Real/Commands/Sync/Command.php index 7984c9dd..44b6980e 100644 --- a/app/Domains/Real/Commands/Sync/Command.php +++ b/app/Domains/Real/Commands/Sync/Command.php @@ -20,6 +20,11 @@ class Command extends BaseCommand protected function execute(InputInterface $input, OutputInterface $output) { $this->line('开始'.$this->description); + + set_time_limit(0); + ini_set('memory_limit', '4096m'); + ini_set('default_socket_timeout', -1); + parent::execute($input, $output); } diff --git a/database/migrations/2018_11_16_190020_create_failed_jobs_table.php b/database/migrations/2018_11_16_190020_create_failed_jobs_table.php new file mode 100644 index 00000000..d432dff0 --- /dev/null +++ b/database/migrations/2018_11_16_190020_create_failed_jobs_table.php @@ -0,0 +1,35 @@ +bigIncrements('id'); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +} diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 86cc9803..d7a3f5b6 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -9,6 +9,7 @@ return array( 'AccountSeeder' => $baseDir . '/database/seeds/AccountSeeder.php', 'ArithmeticError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php', 'AssertionError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/AssertionError.php', + 'CreateFailedJobsTable' => $baseDir . '/database/migrations/2018_11_16_190020_create_failed_jobs_table.php', 'DatabaseSeeder' => $baseDir . '/database/seeds/DatabaseSeeder.php', 'DivisionByZeroError' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php', 'Error' => $vendorDir . '/symfony/polyfill-php70/Resources/stubs/Error.php', diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 5fb1a04c..3b089989 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -686,6 +686,7 @@ class ComposerStaticInite79258a3e34ad3e251999111d9f334d9 'AccountSeeder' => __DIR__ . '/../..' . '/database/seeds/AccountSeeder.php', 'ArithmeticError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/ArithmeticError.php', 'AssertionError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/AssertionError.php', + 'CreateFailedJobsTable' => __DIR__ . '/../..' . '/database/migrations/2018_11_16_190020_create_failed_jobs_table.php', 'DatabaseSeeder' => __DIR__ . '/../..' . '/database/seeds/DatabaseSeeder.php', 'DivisionByZeroError' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/DivisionByZeroError.php', 'Error' => __DIR__ . '/..' . '/symfony/polyfill-php70/Resources/stubs/Error.php',