1313 validate_value ,
1414)
1515from ..core import format_item_payload
16+ from ..core .rate_limit import rate_limiter
1617
1718
1819class JobStoring :
@@ -28,6 +29,7 @@ def __init__(self, api):
2829 """
2930 self .client = api
3031
32+ @rate_limiter
3133 def add_json (self , board_key , job_json ):
3234 """This endpoint allows you to Index a Job object.
3335 Note: If your Job is an unstructured text, make sure to parse it first before
@@ -120,6 +122,7 @@ def add_json(self, board_key, job_json):
120122 response = self .client .post ("job/indexing" , json = job_json )
121123 return validate_response (response )
122124
125+ @rate_limiter
123126 def edit (self , board_key , job_json , key = None ):
124127 """
125128 Edit a job already stored in the given source.
@@ -148,6 +151,7 @@ def edit(self, board_key, job_json, key=None):
148151 response = self .client .put ("job/indexing" , json = job_json )
149152 return validate_response (response )
150153
154+ @rate_limiter
151155 def get (self , board_key , key = None , reference = None ):
152156 """
153157 Retrieve the parsing information.
@@ -168,6 +172,7 @@ def get(self, board_key, key=None, reference=None):
168172 response = self .client .get ("job/indexing" , query_params )
169173 return validate_response (response )
170174
175+ @rate_limiter
171176 def archive (self , board_key , key = None , reference = None ):
172177 """
173178 This method allows to archive (is_archive=1) or unarchive (is_archive=0) a job
@@ -192,6 +197,7 @@ def archive(self, board_key, key=None, reference=None):
192197 response = self .client .patch ("job/indexing/archive" , json = payload )
193198 return validate_response (response )
194199
200+ @rate_limiter
195201 def list (
196202 self ,
197203 board_keys ,
0 commit comments