'mansortdir': MANSORT_DIR}, dag=dag) email_me = EmailOperator( task_id='email_me', to=default_args['email'], subject='%s is complete' % dag_id, html_content='You may now manually sort on NIAO', dag=dag) slack_it = SlackAPIPostOperator( task_id='slack_it', token=SLACK_TOKEN, text='%s is complete' % dag_id, channel='#ephys', dag=dag) make_kwd_task.set_upstream(make_klusta_dir_task) phy_task.set_upstream(make_kwd_task) #merge_events_task.set_upstream(phy_task) clear_phy_task.set_upstream(phy_task) make_kwik_bak_dir_task.set_upstream(phy_task) mv_kwik_bak_task.set_upstream(make_kwik_bak_dir_task) #rsync_task.set_upstream(merge_events_task) rsync_task.set_upstream(clear_phy_task) rsync_task.set_upstream(mv_kwik_bak_task) email_me.set_upstream(rsync_task) slack_it.set_upstream(rsync_task) globals()[dag_id] = dag
env={'PATH': ANACONDA_PATH}, params={ 'postphydir': POSTPHY_DIR, 'ecanalysispath': ECANALYSIS_PATH, 'rasterdir': RASTER_DIR }, dag=dag) ############ Report Completion email_me = EmailOperator(task_id='email_me', to=default_args['email'], subject='%s is merged' % dag_id, html_content='You may commence analysis.', dag=dag) slack_it = SlackAPIPostOperator(task_id='slack_it', token=SLACK_TOKEN, text='%s is merged' % dag_id, channel='#ephys', dag=dag) rsync_task.set_upstream(make_postphy_dir_task) merge_events_task.set_upstream(rsync_task) kwik2pandas_task.set_upstream(merge_events_task) email_me.set_upstream(kwik2pandas_task) slack_it.set_upstream(kwik2pandas_task) make_raster_dir_task.set_upstream(kwik2pandas_task) make_raster_task.set_upstream(make_raster_dir_task) globals()[dag_id] = dag
'mansortdir': MANSORT_DIR }, dag=dag) email_me = EmailOperator( task_id='email_me', to=default_args['email'], subject='%s is complete' % dag_id, html_content='You may now manually sort on NIAO', dag=dag) slack_it = SlackAPIPostOperator(task_id='slack_it', token=SLACK_TOKEN, text='%s is complete' % dag_id, channel='#ephys', dag=dag) make_kwd_task.set_upstream(make_klusta_dir_task) phy_task.set_upstream(make_kwd_task) #merge_events_task.set_upstream(phy_task) clear_phy_task.set_upstream(phy_task) make_kwik_bak_dir_task.set_upstream(phy_task) mv_kwik_bak_task.set_upstream(make_kwik_bak_dir_task) #rsync_task.set_upstream(merge_events_task) rsync_task.set_upstream(clear_phy_task) rsync_task.set_upstream(mv_kwik_bak_task) email_me.set_upstream(rsync_task) slack_it.set_upstream(rsync_task) globals()[dag_id] = dag
make_raster_task = BashOperator( task_id="make_rasters", bash_command=make_raster_cmd, env={"PATH": ANACONDA_PATH}, params={"postphydir": POSTPHY_DIR, "ecanalysispath": ECANALYSIS_PATH, "rasterdir": RASTER_DIR}, dag=dag, ) ############ Report Completion email_me = EmailOperator( task_id="email_me", to=default_args["email"], subject="%s is merged" % dag_id, html_content="You may commence analysis.", dag=dag, ) slack_it = SlackAPIPostOperator( task_id="slack_it", token=SLACK_TOKEN, text="%s is merged" % dag_id, channel="#ephys", dag=dag ) rsync_task.set_upstream(make_postphy_dir_task) merge_events_task.set_upstream(rsync_task) kwik2pandas_task.set_upstream(merge_events_task) email_me.set_upstream(kwik2pandas_task) slack_it.set_upstream(kwik2pandas_task) make_raster_dir_task.set_upstream(kwik2pandas_task) make_raster_task.set_upstream(make_raster_dir_task) globals()[dag_id] = dag