We have created a luigi.cfg of the form (including some of our own sections):
_________________________________________
[core]
error-email: <email>
email-prefix: [Luigi]
...
[scheduler]
retry-delay: 60
...
[redshift]
host:
database:
user:
password:
[s3]
aws_access_key_id:
aws_access_key:
bucket:
[other]
...
__________________________________________
Parameters have been specified:
aws_key = luigi.Parameter(config_path=dict(section='s3', name='aws_access_key_id')
However, no such luck. Error emails don't even send.
Can anyone provide pointers or (preferably) example code?
Thank you all in advance! (If you need further details from me, just ask).
*This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation.--
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.
For more options, visit https://groups.google.com/d/optout.
Is there a best practice to using configuration variables within many classes within the same file?
For example, a file includes all classes which involve BazaarVoice and I need to access the config variable for a local path. Is it best to make reference to the config variable in the parameter list for every class? Or is it best to reference the variable as a global variable for the entire file?
Thanks
On Thursday, September 3, 2015 at 2:53:50 PM UTC-4, dlsta...@gmail.com wrote:
Thanks guys, remaining to client.cfg and using
from luigi import configuration
...
configuration.get_config().get(<section>,<var>)
works great.
Is there a best practice to using configuration variables within many classes within the same file?
For example, a file includes all classes which involve BazaarVoice and I need to access the config variable for a local path. Is it best to make reference to the config variable in the parameter list for every class? Or is it best to reference the variable as a global variable for the entire file?
Thanks