feat(jobs): wire auto-triggering on revision_created and bom_changed events #107
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ref: docs/WORKERS.md §3, §4
The job definition system supports trigger types
revision_createdandbom_changed, andtriggerJobs()exists in the codebase, but it is not wired to item lifecycle events.Requirements
HandleCreateRevision), calltriggerJobs("revision_created", item)to auto-create jobs for all enabled definitions matching that trigger type and filterHandleAddBOMEntry,HandleUpdateBOMEntry,HandleDeleteBOMEntry), calltriggerJobs("bom_changed", item)similarlytrigger.filter(e.g.,item_type: assembly) must be checked against the item before creating a jobjob.createdevent for each auto-triggered jobAcceptance Criteria
Related: #103 (Redis backend is a future optimization)