Right now your factory is a bunch of code that does nothing until you manually run it. That's not a factory — that's a script.
A real factory starts automatically when work arrives. The trigger is a webhook: when you create a ticket in Linear, Linear sends an HTTP POST request to your factory's server. Your server receives it, parses the ticket data, and starts the pipeline.