Skip to content

bug: Schema Cache Not Updated Before Running Tasks #6814

@BeArchiTek

Description

@BeArchiTek

Component

No response

Infrahub version

1.3.2

Current Behavior

When creating a node object using an object file after updating the node schema (e.g., adding HFID), the new schema changes are not reflected immediately. The logs indicate missing attributes (like HFID), but using infrahubctl with the file works as expected.

Expected Behavior

Schema cache should be refreshed before running tasks, so new attributes are available.

Steps to Reproduce

  1. Load a node schema via git repository
  2. Update the schema to add the hfid and add the object file to load it at the same time

Additional Information

Add logic to refresh the schema cache before running tasks, similar to the initialization at tasks.py#L237-L238.

Metadata

Metadata

Assignees

No one assigned

    Labels

    group/backendIssue related to the backend (API Server, Git Agent)state/need-triageThis issue needs to be triagedtype/bugSomething isn't working as expected

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions