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,
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
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
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
)
___
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
>
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
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',
On 05/24/2017 04:10 PM, Juan C. wrote:
> I have some Python 3.6.0 scripts that my co-workers use for some small
> and medium tasks. Whenever I have time I fix some bugs and add some
> features to said scripts to make their lives (and mine :D) easier, but
> there's a problem: I need to send a new
a basic idea would be to get a webpage and put your code there. This is
where you edit your codes
Now you make a program which has
- an updater
- the script to execute in a separate file
the updater each times pull the program on the webpage and compare it with
the script file if they are the