Instructions how to use cron are outdated

Created on 11 January 2025, 3 months ago

Problem/Motivation

Using Drupal CMS latest dev with AI recipe
Using OpenAI provider and this prompt in Drupal Agent Chatbot:

how to setup cron?

Response:

Would you like me to set up the Cron for you directly, or would you prefer a step-by-step guide on how to do it yourself? Let me know how you'd like to proceed!

I added: guide with links

Response:

Here’s a step-by-step guide on how to set up Cron in Drupal:

Step-by-Step Guide to Setting Up Cron in Drupal
Access the Cron Settings:

Log in to your Drupal admin interface.
Go to the Administration menu and navigate to Configuration > System > Cron at the path /admin/config/system/cron.
Configure Cron Settings:

Here, you will see options for setting how often Cron runs.
You can specify the Time interval for how frequently you’d like cron to run (e.g., every hour, every day).
Run Cron Manually:

You can also run Cron manually from the same page by clicking on the "Run cron" button. This is useful for immediate content updates.
Set Up a Cron Job (for Automated Execution):

You will need to set up a server cron job to run automatically.
Access your server's command line (using SSH or a control panel).
Use the following command to set up a cron job that runs every hour (adjust the time as needed):
0 * * * * /usr/bin/wget -O - -q http://YOUR_SITE_URL/cron.php
Replace YOUR_SITE_URL with the actual URL of your site.
Save and Exit:

If you're using a command line editor, save your changes and exit.
Verify Cron Job:

Check whether your cron jobs are running correctly.
You can verify this by checking the last run time on the Cron configuration page or check your site’s status report at /admin/reports/status.
Helpful Links:
Drupal Cron Documentation - Official documentation on configuring and running Cron.
If you have any specific questions or need further assistance during the setup process, feel free to reach out!

Issues with the response:

The link https://www.drupal.org/docs/7/advanced-cron-configuration to the official docs is not working
The command 0 * * * * /usr/bin/wget -O - -q http://YOUR_SITE_URL/cron.php is outdated

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

AI Assistants API

Created by

🇸🇰Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @poker10
  • 🇸🇰Slovakia poker10

    Not sure if the outdated information / wrong links is something, we can fix here - but if not, then maybe there is a possibility to at least mitigate this with instructions/pre action promt in the Drupal CMS?

  • 🇬🇧United Kingdom MrDaleSmith

    This is again not something we are likely to be able to resolve as the LLM is responding from its own training data, and the response to this is pretty much summed up by @yautja_cetanu's in https://www.drupal.org/project/ai/issues/3498932#comment-15939418 🐛 Links provided by AI assistant are frequently not working Active . I think the best approach would be link the two tickets and close this as a duplicate to prevent confusion between the two.

Production build 0.71.5 2024