Skip to content

Adding ugrep task to grep worker#168

Open
spop3000 wants to merge 2 commits into
openrelik:mainfrom
spop3000:ugrep-new
Open

Adding ugrep task to grep worker#168
spop3000 wants to merge 2 commits into
openrelik:mainfrom
spop3000:ugrep-new

Conversation

@spop3000

@spop3000 spop3000 commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

No description provided.

"task_config": [
{
"name": "pattern",
"label": "",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add label.

"required": True,
},
{
"name": "invert-match",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make it invert_match to be consistent with other workers.



@celery.task(bind=True, name=TASK_NAME, metadata=TASK_METADATA)
def command(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


output_files.append(output_file.to_dict())

if not output_files:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will never execute, there will always be output_files. I would

  • remove this
    OR
  • check if there is indeed output from ugrep and if not generate a logger.warning() message that ugrep produced no output instead of a RuntimeError.

Removing this seems fine imo.

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.

3 participants