From 86e7c7ee3b617042dbb8b4da488867c2d3132da4 Mon Sep 17 00:00:00 2001 From: Jonathan Edey Date: Wed, 6 Mar 2024 16:55:30 -0500 Subject: [PATCH] fix: doc quotes --- firebase_admin/functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firebase_admin/functions.py b/firebase_admin/functions.py index 7df9bc607..fa17dfc0c 100644 --- a/firebase_admin/functions.py +++ b/firebase_admin/functions.py @@ -363,7 +363,7 @@ class TaskOptions: Task IDs should be strings that contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), and underscores (_) with a maximum length of 500 characters. If a task's ID is identical to that of an existing task or a task that was deleted or executed - recently then the call will throw an error with code "functions/task-already-exists". + recently then the call will throw an error with code `functions/task-already-exists`. Another task with the same ID can't be created for ~1hour after the original task was deleted or executed. @@ -376,7 +376,7 @@ class TaskOptions: are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. - "Push IDs" from the Firebase Realtime Database make poor IDs because they are based on + Push IDs from the Firebase Realtime Database make poor IDs because they are based on timestamps and will cause contention (slowdowns) in your task queue. Reversed push IDs however form a perfect distribution and are an ideal key. To reverse a string in Python use ``reversedString = someString[::-1]``