Skip to content

Commit

Permalink
feat: Add logging statement to start watching for a prefix in JoinedT…
Browse files Browse the repository at this point in the history
…askWorker
  • Loading branch information
provos committed Sep 2, 2024
1 parent 300faf4 commit 9df986e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/planai/joined_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import logging
from abc import abstractmethod
from typing import Dict, List, Set, Type

Expand Down Expand Up @@ -40,6 +41,7 @@ def consume_work(self, task: Task):
)
if prefix not in self._joined_results:
# we will register the watch for the prefix when we see it for the first time.
logging.info("Starting watch for %s in %s", prefix, self.name)
self.watch(prefix)

# we accumulate the results by the prefix described by join_type
Expand Down

0 comments on commit 9df986e

Please sign in to comment.