@@ -195,7 +195,6 @@ func readCommentScrubbedLines(path string) ([]string, error) {
195195 lines = append (lines , candidate )
196196 }
197197 }
198- log .Printf ("scrubbed lines: %#v" , lines )
199198
200199 return lines , scanner .Err ()
201200}
@@ -212,15 +211,18 @@ func FindDagFilesInLocalTree(dagsRoot string, dagNames map[string]bool) (map[str
212211 // This should map a dir to the ignore patterns in it's airflow ignore if relevant
213212 // this allows us to easily identify the patterns relevant to this dir and it's parents, grandparents, etc.
214213 airflowignoreTree := make (map [string ][]string )
215- files , err := ioutil .ReadDir (dagsRoot )
214+ _ , err := ioutil .ReadDir (dagsRoot )
216215 if err != nil {
217216 return matches , fmt .Errorf ("error reading dagRoot: %v. %v" , dagsRoot , err )
218217 }
219- log .Printf ("found files at dagRott: %v" , files )
220218 filepath .Walk (dagsRoot , func (path string , info os.FileInfo , err error ) error {
221219 dagID := strings .TrimSuffix (info .Name (), ".py" )
222220 relPath , err := filepath .Rel (dagsRoot , path )
223221
222+ if info == nil {
223+ dur , _ := time .ParseDuration ("5s" )
224+ time .Sleep (dur )
225+ }
224226 // resepect .airflowignore
225227 if info .Name () == ".airflowignore" {
226228 log .Printf ("found %v, adding to airflowignoreTree" , path )
@@ -325,7 +327,6 @@ func FindDagFilesInLocalTree(dagsRoot string, dagNames map[string]bool) (map[str
325327 }
326328 }
327329 if ! alreadyMatched {
328- log .Printf ("new match for %v: %v" , dagID , relPath )
329330 matches [dagID ] = append (matches [dagID ], relPath )
330331 }
331332 }
@@ -461,8 +462,6 @@ func (c *ComposerEnv) stopDag(dag string, relPath string, pauseOnly bool, wg *sy
461462 if err != nil {
462463 return fmt .Errorf ("error pausing dag %v: %v" , dag , string (out ))
463464 }
464- log .Printf ("pauseOnly: %#v" , pauseOnly )
465- log .Printf ("!pauseOnly: %#v" , ! pauseOnly )
466465 if ! pauseOnly {
467466 log .Printf ("parsing gcs url %v" , c .DagBucketPrefix )
468467 gcs , err := url .Parse (c .DagBucketPrefix )
0 commit comments