\Drupal\feeds\Entity\Feed::startCronImport() tries to call startCronImport() on a \Drupal\feeds\FeedImportHandler instance, but that class does not have a method with that name yet.

Let's implement that method. It should create a queue task.

Comments

MegaChriz created an issue. See original summary.

megachriz’s picture

Status: Active » Needs review
StatusFileSize
new3.07 KB

Status: Needs review » Needs work

The last submitted patch, 2: feeds-start-cron-import-2966684-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

megachriz’s picture

Status: Needs work » Needs review
StatusFileSize
new3.82 KB
new1.54 KB

The queue name contains the ID of the feed.

Status: Needs review » Needs work

The last submitted patch, 4: feeds-start-cron-import-2966684-4.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

megachriz’s picture

Status: Needs work » Needs review
StatusFileSize
new4.63 KB
new1.5 KB

Some references to the queue refer to the feed bundle and others to the feed ID. This may be well the reason that #2820548: Fatal error when triggering Feeds via cron happens.

megachriz’s picture

Also covers exception thrown when trying to start a cron import task on a locked feed.

The last submitted patch, 6: feeds-start-cron-import-2966684-6.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

Status: Needs review » Needs work

The last submitted patch, 7: feeds-start-cron-import-2966684-7.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

megachriz’s picture

Status: Needs work » Needs review
StatusFileSize
new5.1 KB
new2.14 KB

Hm. The queue name does need to contain the feed's bundle. Else the queue cannot be cleaned up when deleting the feed type.

Status: Needs review » Needs work

The last submitted patch, 10: feeds-start-cron-import-2966684-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

megachriz’s picture

Status: Needs work » Needs review
StatusFileSize
new5.11 KB
new957 bytes

Use $this->t() instead of 'FormattableMarkup' in FeedImportHandler and use \Drupal::time()->getRequestTime() instead of REQUEST_TIME.

  • MegaChriz committed 2e32297 on 8.x-3.x
    Issue #2966684 by MegaChriz: Implemented FeedImportHandler::...
megachriz’s picture

Status: Needs review » Fixed

Great! Tests are passing now. Committed #12.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.