Skip to content

Commit a377a0b

Browse files
committed
Make queue-run tell what it's doing
1 parent f5b0401 commit a377a0b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jobs/GetFeedUpdates.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace sij\humhub\modules\rss\jobs;
44

55
use Yii;
6+
use yii\helpers\Console;
67

78
use humhub\modules\queue\ActiveJob;
89
use humhub\modules\post\models\Post;
@@ -107,13 +108,15 @@ private function postMessage($message, $datePublished = false)
107108
if ( count($oldContent) == 1 ) {
108109
$post = Post::findOne($oldContent[0]->object_id);
109110
$this->log("\n\n### update Post\n");
111+
Console::stdout("RSS queue: updating post... ");
110112
}
111113
}
112114

113115
// if no previous version of the post, create a new one
114116
if ( $post === null ) {
115117
$post = new Post($this->space);
116118
$this->log("\n\n### new Post\n");
119+
Console::stdout("RSS queue: creating new post... ");
117120
}
118121

119122
$post->created_by =
@@ -149,6 +152,7 @@ private function postMessage($message, $datePublished = false)
149152
->query();
150153
}
151154

155+
Console::stdout(Console::renderColoredString("%gdone.%n\n", 1));
152156
}
153157

154158
/**

0 commit comments

Comments
 (0)