Skip to content

UI Jobs streams are not cleaned up after PR is closed #5348

Open
@quynhnhatnguyen

Description

@quynhnhatnguyen

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

Atlantis UI Jobs Stream are not cleaned up after a PR is closed, resulted in system resource are not freed up.

Reproduction Steps

  1. Open a PR in Github, plan or apply the PR to generate jobs stream. Visit the job's stream to confirm seeing the stream.
  2. Close the PR in Github. Visit the UI to see that jobs are still listed whereas locks are cleaned. Confirm that data in repos dir is also cleaned up fine. Visit the previous job stream URL to confirm that you still can see the streams.

Environment details

  • Atlantis version: 0.33.0
  • Deployment method: GKE

Additional Context

Screenshots of before closing the PR:
Image
Image

Screenshots of after closing the PR:

  • Locks are gone but streams remains in the table and you can also click to view the stream content)
Image
  • System resource is not freed up after closing a PR due to streams are left behind
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions