Asynchronously TheHive Cortex analyze

Describe the issue/error/question

I noticed that if I have multiple items (eg 14 IP addresses to analyze on TheHive, N8n do it synchronously. After parsing one IP address TheHive node moves to the next item. As I have more and more items, it may take a long time.

For example, the first IP is processed at 13:00 and the 14th after 30 minutes.

It is possible to do it asynchronously? On my Cortex instance I can run multiple analytics in one time.

Please share the workflow

Information on your n8n setup

  • n8n version: 0.165.1
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: npm

Hi @Dream, I haven’t used TheHive yet but I couldn’t find any option suggesting asynchroneous operations can be requested through the node unfortunately.

I suppose you could work around this though. Start your TheHive operation in a separate workflow which can be triggered through a Webhook node responding immediately. Then, in your “main” workflow use an HTTP Request node to call the Webhook node of your child workflow. This way, your main workflow gets a response immediately and can continue.

1 Like