Event triggering notification multiple times when processing feed #1267
Unanswered
BenParizek
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to trigger a single email when a Feed starts being processed. The feed is being triggered via a cron targeting a specific FeedMe job by it's unique ID (and I have also tested the feed manually via the CP). No other items are in the queue. And, when the queue runs, it appears there is only one step for the job and one row created in the queue table. I've also made sure the job is only running in a single environment.
I've tried watching the events:
\craft\feedme\services\Process\EVENT_BEFORE_PROCESS_FEED
(triggered only when matching the feed ID)\yii\queue\Queue\EVENT_BEFORE_EXEC
(triggered only when matching the feed ID and only when the job has a description matching the Feed import description I'm trying to monitor)In both cases, I receive 3 sequential emails over the period of about a half hour. The timing of the emails (and random stuff about the queue that I've dumped into them) suggests the feed is being run 3 times, sequentially. After one import completes successfully, the feed is run again. Even if my diagnosis about that is wrong, I think I can at least conclude the events are being triggered 3 times even though the job is only getting run once.
Any ideas on why that may be so?
Beta Was this translation helpful? Give feedback.
All reactions