Answers.Body: <p>By default, Craft queue jobs are only run when someone logs into the CP. Your cron job is triggering Feed Me to create the queue jobs, but the jobs themselves won't be run until you log in.</p>
  <p>There are a few ways to get around this - you could have a cron job that triggers the Craft <code>queue/run</code> console command on a regular schedule, or you can use Oliver Stark's <a href="https://github.com/ostark/craft-async-queue" rel="nofollow noreferrer">Async Queue</a> plugin to ensure that queue jobs are run as soon as they're pushed to the queue.</p>
  <p>I recommend you check out nystudio107's excellent article <a href="https://nystudio107.com/blog/robust-queue-job-handling-in-craft-cms" rel="nofollow noreferrer">Robust Craft Queue Job Handling</a> for more info on these and other solutions to allow your queue jobs to run automatically.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-01-18T12:04:49.420Z
Answers.LastActivityDate: 2023-01-18T12:04:49.420Z
Answers.UserDisplayName: Martin Spain
Body: <p>I've created a cron job that runs my Feedme feeds on an hourly basis. The issue is, when logging in I see all the jobs queued up, but they only start running when I actually login to the dashboard, is there something I'm missing here?</p>
  <p>Here's the cronjob:</p>
  <pre><code>@hourly wget -q -O - &quot;https://feedmefeed.com/index.php?p=actions/feed-me/feeds/run-task&amp;direct=1&amp;feedId=4&amp;passkey=pass&quot;
  @hourly wget -q -O - &quot;https://feedmefeed.com/index.php?p=actions/feed-me/feeds/run-task&amp;direct=1&amp;feedId=5&amp;passkey=pass&quot;
  </code></pre>
  <p>Is there something that's required to make it run automatically instead of queueing and awaiting me to login to the <code>/admin</code> area?</p>
  
Tags: <plugin-feedme><craft4>
Title: Feedme Only running Cron jobs when logging in
ThreadText: # Feedme Only running Cron jobs when logging in
  
  (Asked by: username_0 on 2023-01-18)
  
  I've created a cron job that runs my Feedme feeds on an hourly basis. The issue is, when logging in I see all the jobs queued up, but they only start running when I actually login to the dashboard, is there something I'm missing here?
  
  Here's the cronjob:
  
  ```
  @hourly wget -q -O - "https://feedmefeed.com/index.php?p=actions/feed-me/feeds/run-task&direct=1&feedId=4&passkey=pass"
  @hourly wget -q -O - "https://feedmefeed.com/index.php?p=actions/feed-me/feeds/run-task&direct=1&feedId=5&passkey=pass"
  
  ```
  
  Is there something that's required to make it run automatically instead of queueing and awaiting me to login to the `/admin` area?
  
  **Tags:** plugin-feedme, craft4
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-01-18. Score: 4 | Accepted answer
  
  By default, Craft queue jobs are only run when someone logs into the CP. Your cron job is triggering Feed Me to create the queue jobs, but the jobs themselves won't be run until you log in.
  
  There are a few ways to get around this - you could have a cron job that triggers the Craft `queue/run` console command on a regular schedule, or you can use Oliver Stark's [Async Queue](https://github.com/ostark/craft-async-queue) plugin to ensure that queue jobs are run as soon as they're pushed to the queue.
  
  I recommend you check out nystudio107's excellent article [Robust Craft Queue Job Handling](https://nystudio107.com/blog/robust-queue-job-handling-in-craft-cms) for more info on these and other solutions to allow your queue jobs to run automatically.
  
  
  ---
  
  