Pass execution date as a datetime object to MongoToS3Operator

2018-10-22 Thread Kyle Hamlin
around this that I don't know about or am overlooking? -- Kyle Hamlin

Re: Flask-AppBuilder has pinned versions of Click & Flask-Login in 1.10.0

2018-10-05 Thread Kyle Hamlin
myself so don't trust my word on this) > > -ash > > On 4 Oct 2018, at 16:38, Kyle Hamlin wrote: > > > > If I remove the Flask-AppBuild pinning to 1.11.0 then it uncovers a > Jinja2 > > conflict which is baffling because I don't see anywhere in the graph that >

Re: Flask-AppBuilder has pinned versions of Click & Flask-Login in 1.10.0

2018-10-04 Thread Kyle Hamlin
;=0.6, installed: 1.5] - six [required: >=1.9.0, installed: 1.11.0] - thrift [required: >=0.9.2, installed: 0.11.0] - six [required: >=1.7.2, installed: 1.11.0] - tzlocal [required: >=1.4, installed: 1.5.1] - pytz [required: Any, installed: 2018.5] - unicodecsv [require

Re: Flask-AppBuilder has pinned versions of Click & Flask-Login in 1.10.0

2018-10-04 Thread Kyle Hamlin
b5ffd146a5a33820cfa7541e5ce09098f3d541a > > > For installing in the mea time pin `Flask-AppBuilder=1.11.0' > > > On 4 Oct 2018, at 00:41, Kyle Hamlin wrote: > > > > Hi, > > > > Today I was trying to upgrade Airflow to 1.10.0 and it appears that there >

Re: Flask-AppBuilder has pinned versions of Click & Flask-Login in 1.10.0

2018-10-04 Thread Kyle Hamlin
whoops remove the [[source]] at the end of the url = " https://pypi.python.org/simple; that is a typo. On Thu, Oct 4, 2018 at 11:26 AM Kyle Hamlin wrote: > Thank you for the response Ash. > > Even with your suggestion, there appear to be version conflicts all over > the p

Flask-AppBuilder has pinned versions of Click & Flask-Login in 1.10.0

2018-10-03 Thread Kyle Hamlin
red: >=1.9.0, installed: 1.11.0] - thrift [required: >=0.9.2, installed: 0.11.0] - six [required: >=1.7.2, installed: 1.11.0] - tzlocal [required: >=1.4, installed: 1.5.1] - pytz [required: Any, installed: 2018.5] - unicodecsv [required: >=0.14.1, installed: 0.14.1] - werkzeug [required: >=0.14.1,<0.15.0, installed: 0.14.1] - zope.deprecation [required: >=4.0,<5.0, installed: 4.3.0] - setuptools [required: Any, installed: 40.4.3] -- Kyle Hamlin

Re: S3 logging not working with docker

2018-09-16 Thread Kyle Hamlin
also doesnt work. > Can you please help me. > > > Thanks, > > Bhavani > -- Kyle Hamlin

Re: Will redeploying webserver and scheduler in Kubernetes cluster kill running tasks

2018-08-30 Thread Kyle Hamlin
an > event > > stream of pods completing and it keeps a checkpoint so it can resubscribe > > when it comes back up. > > > > I forget if the worker pods update the db or if the scheduler is doing > > that, but it should work out. > > > > On Thu, Aug 3

Re: Will redeploying webserver and scheduler in Kubernetes cluster kill running tasks

2018-08-30 Thread Kyle Hamlin
gentle bump On Wed, Aug 22, 2018 at 5:12 PM Kyle Hamlin wrote: > I'm about to make the switch to Kubernetes with Airflow, but am wondering > what happens when my CI/CD pipeline redeploys the webserver and scheduler > and there are still long-running tasks (pods). My intuition is t

Will redeploying webserver and scheduler in Kubernetes cluster kill running tasks

2018-08-22 Thread Kyle Hamlin
tasks pods change/update state in the database while being "headless"? Will the UI/Scheduler still be aware of the tasks (pods) once they are live again? Is there anything else the might cause issues when deploying while tasks (pods) are running that I'm not thinking of here? Kyle Hamlin

Re: SparkSubmitOperator with Azure HDInsight

2018-06-22 Thread Kyle Hamlin
minster+%0D%0ALondon+SW1E+5LB+-+UK=gmail=g> > phone: +44 (0)20 7730 6000 > k.n...@reply.com > www.reply.com > > [image: Data Reply] > -- Kyle Hamlin

Re: Airflow cli to remote host

2018-05-23 Thread Kyle Hamlin
r to run these jobs. > > Thanks! > -- > Frank Maritato > > -- Kyle Hamlin

Re: Use KubernetesExecutor to launch tasks into a Dask cluster in Kubernetes

2018-04-29 Thread Kyle Hamlin
ster running your k8s cluster? Is there > any > > > reason you wouldn't just launch the Dask cluster for the job you're > > running > > > and then tear it down? I feel like with k8s the elasticity is one of > the > > > main benefits. > > > > > >

Re: Use KubernetesExecutor to launch tasks into a Dask cluster in Kubernetes

2018-04-28 Thread Kyle Hamlin
sExecutor to launch tasks into the Dask cluster (these are > ML > > jobs with sklearn)? I feel like there is a bit of inception going on here > > in my mind and I just want to make sure a setup like this makes sense? > > Thanks in advance for anyone's input! > > > -- Kyle Hamlin

Use KubernetesExecutor to launch tasks into a Dask cluster in Kubernetes

2018-04-27 Thread Kyle Hamlin
Hi all, If I have a Kubernetes cluster running in DCOC and a Dask cluster running in that same Kubernetes cluster is it possible/does it makes sense to use the KubernetesExecutor to launch tasks into the Dask cluster (these are ML jobs with sklearn)? I feel like there is a bit of inception going

Bit confused about start_date and schedule_interval related to daily/weekly DAG

2018-04-18 Thread Kyle Hamlin
I'm a bit confused with how the scheduler catches up in relation to start_date and schedule_interval. I have one dag that runs hourly: dag = DAG( dag_id='hourly_dag', start_date=days_ago(1), schedule_interval='@hourly', default_args=ARGS) When I start this DAG fresh it will catch

Trouble with remote s3 logging

2018-04-16 Thread Kyle Hamlin
This morning I tried to upgrade to the newer version of the logging config file but I keep getting the following a TypeError for my database session. I know my credentials are correct so I'm confused why this is happening now. Has anyone experiences this? Note that I'm installing Airflow from

Re: What are the advantages of plugins, not sure I see any?

2018-03-30 Thread Kyle Hamlin
slie-Waksman > > <geo...@cloverhealth.com.invalid> wrote: > > > > > It's presumably useful if you want to package your plugins for other > > people > > > to use but it seems like everyone just adds those directly to the > Airflow > > > codebase th

Re: What are the advantages of plugins, not sure I see any?

2018-03-29 Thread Kyle Hamlin
> However, executors and some other pieces are a little bit harder to deal > with as non-plugins > >> On Thu, Mar 29, 2018 at 3:56 PM Kyle Hamlin <hamlin...@gmail.com> wrote: >> >> Hello, >> >> I just got done writing a few plugins, and the process ha

What are the advantages of plugins, not sure I see any?

2018-03-29 Thread Kyle Hamlin
Hello, I just got done writing a few plugins, and the process has left me wondering what the real benefits are? As far as I can tell, it makes testing more difficult since you cannot import from the created module, you have to import directly from the plugin. Additionally, your code editor isn't

Re: Submitting 1000+ tasks to airflow programatically

2018-03-22 Thread Kyle Hamlin
tion to the global > context. > > > > Like this: > > > > def create_client_dag(client_id): > > > > # build dag here > > > > > > > > def get_client_ids_locally(): > > > > # access the data that was pulled from the API > &

Re: Submitting 1000+ tasks to airflow programatically

2018-03-21 Thread Kyle Hamlin
mply index % 60. This > > spreads out the load so that the scheduler isn’t trying to run everything > > at the exact same moment. I would suggest if you do go this route, to > also > > stagger your hours if you can because of how many you plan to run. > Perhaps > > your DA

Submitting 1000+ tasks to airflow programatically

2018-03-21 Thread Kyle Hamlin
Hello, I'm currently using Airflow for some ETL tasks where I submit a spark job to a cluster and poll till it is complete. This workflow is nice because it is typically a single Dag. I'm now starting to do more machine learning tasks and need to build a model per client which is 1000+ clients.