Project

Profile

Help

Story #4553

As a user, I can query for task parameter information

Added by daviddavis 7 months ago. Updated 6 months ago.

Status:
NEW
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

Problem

Plugin writers and users want to query tasks by data used as their RQ task parameters. For example, tasks that use base_version as an argument would be useful to query on later.

Solution

Have RQ tasks store the keyword, value pairs in a separate Table that foreign key relate to the Task model. Serialize these for the Task complete serialization.

The attribute can be called kwargs that shows a list of <key, value> tuples.

Security

We should have a decorators available for plugin writers to ensure this feature doesn't leak information it shouldn't. Specifically make a decorator called no_kwargs_recording that will disable the kwargs recording for a task.

Additionally it should take a list of kwarg names that will specifically be not recorded. For example:

no_kwargs_recording('password')
def myfunc(username, password):
    pass

This example would record the 'username' key and its value, but never the 'password' key.

History

#1 Updated by daviddavis 7 months ago

  • Tracker changed from Issue to Task
  • % Done set to 0

#2 Updated by bmbouter 7 months ago

  • Tracker changed from Task to Story
  • Subject changed from Store task parameter information to As a user, I can query for task parameter information
  • Sprint/Milestone deleted (3.0)

Removing the 3.0 milestone because this would be a new feature and so it can't go into the GA since it's not already in the RC. Also converting it to a story.

#3 Updated by bmbouter 7 months ago

  • Description updated (diff)

Rewriting story body

#4 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF