You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by ea...@apache.org on 2020/08/11 01:52:55 UTC

[incubator-sdap-ingester] branch poll-filesystem created (now b715f51)

This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a change to branch poll-filesystem
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git.


      at b715f51  Use filesystem poll instead of listening to events

This branch includes the following new commits:

     new b715f51  Use filesystem poll instead of listening to events

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-sdap-ingester] 01/01: Use filesystem poll instead of listening to events

Posted by ea...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

eamonford pushed a commit to branch poll-filesystem
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-ingester.git

commit b715f51baddf9868d00cc1fcb06929d44fda8394
Author: Eamon Ford <ea...@gmail.com>
AuthorDate: Mon Aug 10 18:52:39 2020 -0700

    Use filesystem poll instead of listening to events
---
 collection_manager/collection_manager/services/CollectionWatcher.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/collection_manager/collection_manager/services/CollectionWatcher.py b/collection_manager/collection_manager/services/CollectionWatcher.py
index 8911806..726f6b8 100644
--- a/collection_manager/collection_manager/services/CollectionWatcher.py
+++ b/collection_manager/collection_manager/services/CollectionWatcher.py
@@ -5,8 +5,7 @@ from collections import defaultdict
 from typing import Dict, Callable, Set, Optional, Awaitable
 import yaml
 from watchdog.events import FileSystemEventHandler
-from watchdog.observers import Observer
-from yaml.scanner import ScannerError
+from watchdog.observers.polling import PollingObserver as Observer
 
 from collection_manager.entities import Collection
 from collection_manager.entities.exceptions import RelativePathError, CollectionConfigParsingError, \