Python
- tilebox.datasets
- tilebox.workflows
- Client
- Task
- Client.runner
- TaskRunner.run_all
- TaskRunner.run_forever
- Context.submit_subtask
- Context.job_cache
- ClusterClient.create
- ClusterClient.find
- ClusterClient.delete
- ClusterClient.all
- JobCache.group
- JobCache.__iter__
- JobClient.submit
- JobClient.find
- JobClient.retry
- JobClient.cancel
- JobClient.visualize
- JobClient.query
Go
- datasets
- workflows
tilebox.workflows
JobCache.__iter__
Copy
Ask AI
# within a Tasks execute method, access the job cache
# def execute(context: ExecutionContext)
cache = context.job_cache
# iterate over all keys
for key in cache:
print(cache[key])
# or collect as list
keys = list(cache)
# also works with nested groups
for key in cache.group("some-group"):
print(cache[key])
Copy
Ask AI
def JobCache.__iter__() -> Iterator[str]
List all available keys in a job cache group. Only keys that are direct children of the current group are returned. For nested groups, first access the group and then iterate over its keys.
Copy
Ask AI
# within a Tasks execute method, access the job cache
# def execute(context: ExecutionContext)
cache = context.job_cache
# iterate over all keys
for key in cache:
print(cache[key])
# or collect as list
keys = list(cache)
# also works with nested groups
for key in cache.group("some-group"):
print(cache[key])
Was this page helpful?
Copy
Ask AI
# within a Tasks execute method, access the job cache
# def execute(context: ExecutionContext)
cache = context.job_cache
# iterate over all keys
for key in cache:
print(cache[key])
# or collect as list
keys = list(cache)
# also works with nested groups
for key in cache.group("some-group"):
print(cache[key])
Assistant
Responses are generated using AI and may contain mistakes.