Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the feeds import settings are:
Periodic import: Off
Import on submission: Off
Process in background: On
The cron does not call the process in background code. Used dd to trace through the code to a point and found it never hits the parser, how should this work?
I'm using a custom parser. Could that be the reason? Is there a specific way to implement it so that process in background works?
Setting the feed to use a periodic import results in the system working as expected.
Using the latest dev.
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff-2445477-6-8.txt | 3.27 KB | MegaChriz |
#8 | feeds-process-in-background-validation-2445477-8.patch | 7.39 KB | MegaChriz |
| |||
#6 | interdiff-2445477-5-6.txt | 2.41 KB | MegaChriz |
#6 | feeds-process-in-background-validation-2445477-6.patch | 5.88 KB | MegaChriz |
| |||
#5 | interdiff-2445477-3-5.txt | 2.19 KB | MegaChriz |
Comments
Comment #1
dineshw CreditAttribution: dineshw as a volunteer and at TATA Consultancy Services for Pfizer, Inc. commentedDoes that is the case with Periodic import: On
Comment #2
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedRun into this issue today. Upon further investigation, it kinda make sense that the combination of these settings don't work. But it is in nowhere obvious.
Well, here is how it makes sense:
FeedsSource::startImport()
via an other route.Confusing, huh?
Comment #3
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis patch adds a nice warning to the user.
I also like to make the run in background thing to be really run in the background (not import the first bit and then continue in the background), but first I'd like to see if this breaks anything.
Comment #5
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedYep. Some test failures.
New patch.
Comment #6
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedReroll + some additional changes that are needed now that #2868134: Show next time that the source will be imported and #2630694: Run background jobs directly in queue. are committed.
Comment #7
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedComment #8
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis also adds a warning when the "Process in background" setting turned on has no effect. This setting has no effect when using the standalone form and the "Import on submission" setting turned off.
Comment #10
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedCommitted #8.
Comment #12
totko123 CreditAttribution: totko123 commentedHello ,
I am using feeds version 7.x-2.x:-beta 3 , does this patch is aplicable for my version and how can I patch it?