Skip to content

fix: register Temporal workers for hyphenated provider identifiers (instagram-standalone)#1303

Open
Linus-tom wants to merge 1 commit intogitroomhq:mainfrom
Linus-tom:fix/temporal-hyphenated-providers
Open

fix: register Temporal workers for hyphenated provider identifiers (instagram-standalone)#1303
Linus-tom wants to merge 1 commit intogitroomhq:mainfrom
Linus-tom:fix/temporal-hyphenated-providers

Conversation

@Linus-tom
Copy link
Copy Markdown

Problem

Providers with hyphenated identifiers (e.g. instagram-standalone) are excluded by the worker filter in temporal.module.ts:

.filter((f) => f.identifier.indexOf('-.indexOf(') === -1)

This means no Temporal worker is ever created for Instagram, causing posts to remain stuck in QUEUE state indefinitely and never getting published.

Fix

Replace the exclusion filter with deduplication by base provider name (the part before the first hyphen). A Set tracks seen queue names so only one worker is registered per base provider:

.filter((integration) => {
  const queue = integration.identifier.split('-.split(')[0];
  if (seenQueues.has(queue)) return false;
  seenQueues.add(queue);
  return true;
})

This ensures instagram-standalone gets a worker on the instagram task queue, while still preventing duplicate workers for providers that share the same base name.

Impact

  • Instagram posts now publish correctly via Temporal workers
  • No breaking changes for existing providers without hyphens
  • Backward compatible: main, youtube, pinterest etc. continue working as before

Providers like 'instagram-standalone' were being excluded by the filter:
  .filter((f) => f.identifier.indexOf('-') === -1)

This meant no Temporal worker was ever created for Instagram, causing
posts to remain in QUEUE state indefinitely.

The fix replaces the exclusion filter with deduplication by base provider
name (the part before the first hyphen). A Set tracks seen queue names
so only one worker is created per base provider (e.g. 'instagram' from
'instagram-standalone').
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 11, 2026

@Linus-tom is attempting to deploy a commit to the Listinai Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant