Skip to content

Commit

Permalink
add more debugging to cron run
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfinnarn committed Feb 7, 2024
1 parent 477313c commit 9f5e1f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
else {
$file = 'public://next-buildrequest.txt';
file_put_contents($file, 'build me Seymour!');
$this->messenger()->addMessage($this->t('Build lock file set.'));
$this->messenger()->addMessage($this->t('Build request file set.'));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
* Implements hook_cron().
*/
function va_gov_content_release_cron(): void {
// Log cron run starting.
\Drupal::logger('va_gov_content_release')->info('Cron run starting.');

// Run script in dirname(DRUPAL_ROOT) directory.
$script = dirname(DRUPAL_ROOT) . '/scripts/queue_runner/next_queue_runner.sh';
// Run script in background if it exists.
Expand Down

0 comments on commit 9f5e1f2

Please sign in to comment.