christoph
06/28/2022, 10:31 PMjobs - I'm loving the jobs feature and am migrating some projects to 2.0.
In order to do what I previously did with job_id where I had different invocations of the same elt command but with different variations of entities to sync (via use of --select parameter in elt), how can I do that with jobs and the run command?
Do extras work for the run command? The extras documentation only mentions the elt and invoke commands?
https://docs.meltano.com/concepts/plugins#extrasaaronsteers
06/28/2022, 10:58 PMIn order to do what I previously did with1. If the distinct state ID (previously called "job ID") was needed to differentiate a different stage or deployment, we recommend using different "environments" for those jobs, just as 'staging' and 'prod', or 'prod_west' and 'prod_east', etc. 2. If the distinct state ID was needed because the same tap was used to sync from two different sources, likewhere I had different invocations of the samejob_idcommand but with different variations of entities to sync (via use ofeltparameter in--select), how can I do that witheltand thejobscommand?run
tap-slack-singer and tap-slack-meltano both using the tap-slack to pull from two different data sources, then we recommend using 'inherits from' relationships so that the plugins have distinct names when pulling from distinct sources.
3. Assuming your jobs reference distinct source names (point 2 above) and are running in a specific enviornment context (point 1 above), then meltano run will autogenerate state IDs for you that will always be unique and correct for that combination of {environment, source, destination}.
4. As a one time migration task, you may want to move/copy your old state artifacts into the new auto-generated naming convention that is used by meltano run.aaronsteers
06/28/2022, 10:58 PMaaronsteers
06/28/2022, 11:24 PMchristoph
06/28/2022, 11:25 PMselect extra in a run <jobname> command, and then I would name the jobs myself in the job definitions.christoph
06/28/2022, 11:26 PMOn rereading your question I see you mentioned --select. Would it work for your use case to leverage inherits_from to declare tap definitions for each selected set of streams?Yes. That would work from a scalability perspective. I only have about 5-6 streams on my tap, which I need to run each in their own 'jobs' with their own state files.
aaronsteers
06/28/2022, 11:29 PMaaronsteers
06/28/2022, 11:30 PM