I use Mixpost with is a Social Media manager. It works great but lacks support of Pixelfed. Hopefully it will one day support other federated sites.
So, I’m working on a workflow that is triggered when I make a new Mastodon post and grabs the images/tags/Status and posts them to my Pixelfed account.
My workflow works as expected regarding the data scrape and post.
Describe the problem/error/question
What’s tripping me up is the fact that the workflow may bet triggered multiple times once it is triggered which results in my Pixelfed account having the same post several times.
A few observations:
- I use a webhook to trigger the workflow.
- The webhook call is always successful in activating the workflow the first time.
- The retrigger only happens when the webhook call is made - meaning that the duplicate posts only happen in the few seconds following the initial webhook call.
I’ve included my partial workflow that shows how I’m attempting to use a lock mechanism to prevent the rerunning of the workflow.
Within the workflow I also utilize a Uniqueness check that prevents the repost using an IF node that checks to see if the new POSTID from Mastedon is in a list of past POSTIDs and if so we jump to the Release Lock node and ends.
I can’t explain why the retrigger happens since the webhook call is only made once, right?
Is there a way to limit the number of times a webhook triggers a work flow in a given timespan?
Something like “Once the webhook call triggers the workflow do not rerun the workflow for xx seconds.”
Thanks for your time and any input.
What is the error message (if any)?
No error, but the workflow may run multiple times requiring that I do additional work.
I’m relatively new to n8n, so I’m OK with any critic of my logic.
I’ll try to incorporate any suggestions you folks have.
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.47.3
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker on Synology NAS
- Operating system: Synology DSM