Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Store Recommended Action objects in db #554

Closed

Description

@a-martynovich

Currently we generate recommended actions every time they are needed, that is for every request and additionally in GitHub issues celery job. This will cause issues if a user has many devices such as long page loads. Celery job may also take a lot of time.

A new celery job is needed. It should run right after ping, re-generate recommended actions and store them in db. No need to run it on a schedule because pings arrive at evenly distributed time moments. In some cases, like for Firewall Policy recommended action, we may generate it immediately.
The db model should be the same as recommended_actions.Action class plus snoozed boolean field and be an m2m relation to Device model. The rest of the logic stays the same.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions