Skip to content

Commit

Permalink
Version 2.9.1
Browse files Browse the repository at this point in the history
See CHANGELOG.
  • Loading branch information
JSn1nj4 committed Apr 24, 2024
2 parents 281e06a + ac9536f commit 8530fed
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 61 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## Version 2.9.1

### Fix

- [#194][is_194]: Migrate old schedule stuff to console routes file ([#195][pr_195])

[is_194]: https://github.com/JSn1nj4/ElliotDerhay.com/issues/194

[pr_195]: https://github.com/JSn1nj4/ElliotDerhay.com/pull/195

## Version 2.9.0

### Updates
Expand Down
61 changes: 0 additions & 61 deletions app/Console/Kernel.php

This file was deleted.

1 change: 1 addition & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__ . '/../routes/web.php',
commands: __DIR__ . '/../routes/console.php',
health: '/up',
then: function (Application $app) {
if ($app->environment(['production', 'staging'])) return;
Expand Down
30 changes: 30 additions & 0 deletions routes/console.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

use App\Console\Commands\{GithubEventPullCommand,
GithubUserUpdateCommand,
SendWeeklyReportCommand,
TokenPruneCommand,
TweetPullCommand,
TwitterUserUpdateCommand};
use App\Features\TwitterFeed;
use App\Jobs\CleanTempStorageJob;
use Illuminate\Queue\Console\WorkCommand;
use Illuminate\Support\Facades\Schedule;
use Laravel\Pennant\Feature;

Schedule::command(GithubEventPullCommand::class)->hourly();
Schedule::command(GithubUserUpdateCommand::class)->weekly();
Schedule::command(TokenPruneCommand::class)->daily();

if (Feature::active(TwitterFeed::class)) {
Schedule::command(TweetPullCommand::class)->hourly();
Schedule::command(TwitterUserUpdateCommand::class)->weekly();
}

Schedule::job(CleanTempStorageJob::class)->weekly();
Schedule::command(WorkCommand::class, ['--stop-when-empty'])->daily();

// reports can run after everything else honestly
Schedule::command(SendWeeklyReportCommand::class)
->saturdays()
->at(config('app.schedule.default.weekly_time'));

0 comments on commit 8530fed

Please sign in to comment.