Re: [Tutor] threading tutorial

2017-05-25 Thread Cameron Simpson
On 25May2017 11:52, Michael C wrote: Right now all i need is to grab 3 values from 3 variables before killing a thread, like this: def stuff(): do stuff, get values, (x,y,d) # main code startthread(stuff(), blah) # if else need to sleep or kill the thread, and because I'll restart the thr

Re: [Tutor] threading tutorial

2017-05-25 Thread Michael C
Right now all i need is to grab 3 values from 3 variables before killing a thread, like this: def stuff(): do stuff, get values, (x,y,d) # main code startthread(stuff(), blah) # if else need to sleep or kill the thread, and because I'll restart the thread later, I'd like to get the values

[Tutor] threading tutorial

2017-05-25 Thread Michael C
Hi all: I tried to google for tutorials of threading, but they are all equally confusing. Does someone know of a good page or a book that talk about threading? thanks! ___ Tutor maillist - Tutor@python.org To unsubscribe or change subsc

Re: [Tutor] airflow dag

2017-05-25 Thread Peter Otten
Alan Gauld via Tutor wrote: >>dag=dag > > I'm not sure what you think the line above does but > in normal Python it would have zero effect. The context makes it a keyword argument. dag = DAG(...) ... SimpleHttpOperator( ... dag=dag ) ___ Tut

Re: [Tutor] airflow dag

2017-05-25 Thread Peter Otten
shubham goyal wrote: > He guys, > > I want to ask that can we pass the parameters as commandline arguments in > airflow when we are triggering the dag and access them inside the dag's > python script/file. > script: > like this here i am trying to create a cluster but i need to pass password >

Re: [Tutor] airflow dag

2017-05-25 Thread Alan Gauld via Tutor
On 25/05/17 13:15, shubham goyal wrote: > He guys, > > I want to ask that can we pass the parameters as commandline arguments in > airflow when we are triggering the dag and access them inside the dag's > python script/file. I've no idea what a dag is. This list is for people learning Python as a

[Tutor] airflow dag

2017-05-25 Thread shubham goyal
He guys, I want to ask that can we pass the parameters as commandline arguments in airflow when we are triggering the dag and access them inside the dag's python script/file. script: from airflow import DAG from datetime import datetime,timedelta default_args = { 'owner': 'airflow', 'depe