How can I get tasks to complete when not logged in to the CP? I've noticed that tasks only run when logged into the admin panel, is there anyway to avoid this? 

For some context: I have jobs scheduled on a cron to run every 30 minutes, when I log in it seems that all of the items get queued up from the last time I logged in and proceed to run, this isn't terrible - but this app won't be seeing much login activity down the road.

`public function execute($queue)
{
    $section = Craft::$app-&gt;sections-&gt;getSectionByHandle('orders');
    $entryTypes = $section-&gt;getEntryTypes();
    $entryType = reset($entryTypes);

// Create an entry
    $entry = new Entry([
        'sectionId' =&gt; $section-&gt;id,
        'typeId' =&gt; $entryType-&gt;id,
        'fieldLayoutId' =&gt; $entryType-&gt;fieldLayoutId,
        'authorId' =&gt; 1,
        'title' =&gt; 'Order Number: ' . $this-&gt;orderId,
        'slug' =&gt; $this-&gt;orderId,
        'postDate' =&gt; new DateTime(),
    ]);


    $entry-&gt;setFieldValues([
        'orderId' =&gt; $this-&gt;orderId,
        'lineItemMatrix' =&gt; $this-&gt;lineItemMatrix,
        'couponMatrix' =&gt; $this-&gt;couponMatrix,
        'amountPayable' =&gt; $this-&gt;amountPayable,
        'orderTotal' =&gt; $this-&gt;orderTotal,
        'tax' =&gt; $this-&gt;tax,
        'sellerDiscount' =&gt; $this-&gt;sellerDiscount,
        'shipping' =&gt; $this-&gt;shipping
    ]);
    //check to see if entry exists.
    $existing = Entry::find()-&gt;section('orders')-&gt;slug($entry-&gt;slug)-&gt;one();

    if (is_null($existing)){
        return Craft::$app-&gt;elements-&gt;saveElement($entry);
    } else {
       // don't do anything;
        return false;
    }
}`
To reiterate what has been said in the comments above and to present an answer, the best way to ensure that queue jobs are completed even without the CMS being logged into or the site being visited is using a scheduled cron job.

The following will run all jobs in the queue every 10 minutes:

*/10 * * * * /usr/bin/php /path/to/craft queue/run