MCPcopy Create free account
hub / github.com/aws/aws-cli / is_scheduled

Method is_scheduled

awscli/s3transfer/bandwidth.py:311–318  ·  view source on GitHub ↗

Indicates if a consumption request has been scheduled :type token: RequestToken :param token: The token associated to the consumption request that is used to identify the request.

(self, token)

Source from the content-addressed store, hash-verified

309 self._total_wait = 0
310
311 def is_scheduled(self, token):
312 """Indicates if a consumption request has been scheduled
313
314 :type token: RequestToken
315 :param token: The token associated to the consumption
316 request that is used to identify the request.
317 """
318 return token in self._tokens_to_scheduled_consumption
319
320 def schedule_consumption(self, amt, token, time_to_consume):
321 """Schedules a wait time to be able to consume an amount

Callers 4

test_is_scheduledMethod · 0.80
test_is_not_scheduledMethod · 0.80
consumeMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_is_scheduledMethod · 0.64
test_is_not_scheduledMethod · 0.64