I'm new to Luigi and trying to build an ETL process with the framework.
Imagine I have a process similar to the previous snippet of pseudo code. The process must check a folder and get the list of files inside. Then, one by one, import to staging database and run a process to load the data in staging to the final table.
The problem is that, with the previous solution, all the files loading into the staging table (followed by the loading process of each file) is run in parallel, which cannot happen. How can I force Luigi to execute the tasks sequentially? Only when a file finishes the load in the final table, import the next one and so on. (Check the draft below for a simplified draft).
I know that I should use the requires method to ensure the sequence, but how can I do it dinamically for an unknown number of files to be loaded?
Thank you very much in advance for the help.
--
You received this message because you are subscribed to the Google Groups "Luigi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to luigi-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/94364e6a-f29e-46a4-8431-d78af78903d5n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/5166c867-31ed-4448-a8f0-be42257ceaf7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/f7539c18-d6d8-4496-bd01-535d19cc1d75n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Luigi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to luigi-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/CAL7zZVQYAOK8gL0SN0wVNwTOdgXOR5emJehwg6pfc3X6b8LryA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/c8b3274a-d10a-4bdc-8230-b8d221c9a864n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/b4dd25c5-8afd-4d73-9d14-98d36e5cd6a9n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/luigi-user/cf7dfbfe-e9f8-4360-beb4-eadba5d92b07n%40googlegroups.com.