TheHive-Project / TheHive-Project/Cortex

Aborted jobs are still showing up as InProgress after Cortex restart

Open
#363 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Request Type

Bug

Work Environment
Question Answer
OS version (server) Ubuntu 18.04 LTS
OS version (client) not relevant
Cortex version / git hash 3.1.1-1
Package Type Debian package
Browser type & version not relevant
Problem Description

Running jobs are not marked as failed or something similar on unexpected abortion (stop/restart) of Cortex.

Steps to Reproduce
  1. Run many analyzers
  2. Suddenly stop Cortex while the analyzers are still running
  3. Start Cortex again
  4. See previously "running" analyzers still showing up as "InProgress" while they are actually not
Possible Solutions

There are two options:

  1. Re-run the analyzer job (probably not a good idea for responders) on Cortex startup
  2. Mark the job as failed or aborted

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Cortex startup handling and the persisted state of analyzer jobs after an unexpected stop. Reproduce the restart scenario described in the issue and verify that jobs interrupted during shutdown are marked failed or aborted rather than remaining InProgress.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.