Closed gvwilson closed 2 years ago
This is not yet supported but it is on the roadmap. https://bitprophet.org/projects/#roadmap
If you'd like to track the progress of that specific feature, we are linking back to this issue I think is the best canonical issue to describe it: https://github.com/pyinvoke/invoke/issues/461
But the timeline to work on this will be after all of Fabric, Paramiko and Invoke all migrate to CircleCI and drop support for Python2. Then we stand a better chance at feature work with a smaller support matrix.
So there is a lot of catch up maintenance work, but this is a popular request we intend to implement.
I have two tasks: one cleans a raw data file to produce a clean data file, and the other produces several plots from the clean data file:
If I run:
then logging is set to
INFO
and I get a message from insideclean_raw_data
. However, if I run:then:
clean_data
is invoked withlogging=None
, so no log message appears.plot_data
is then invoked withlogging="info"
, so its log message appears.My expectation was that command-line flags would be passed down to dependent tasks. I tried doing this manually:
but this produces an error message because
logging
isn't defined at the point the@task
decorator is invoked.Is there a way to chain optional arguments in the desired fashioned?