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.group
Copy
Ask AI
# within a Tasks execute method, access the job cache
# def execute(context: ExecutionContext)
cache = context.job_cache
# use groups to nest related cache values
group = cache.group("some-group")
group["value"] = b"my-value"
nested = group.group("nested")
nested["value"] = b"nested-value"
# access nested groups directly via / notation
value = cache["some-group/nested/value"]
Copy
Ask AI
def JobCache.group(name: str) -> JobCache
You can nest caches in a hierarchical manner using groups. Groups are separated by a forward slash (/) in the key. This hierarchical structure functions similarly to a file system.
Parameters
The name of the cache group.
Copy
Ask AI
# within a Tasks execute method, access the job cache
# def execute(context: ExecutionContext)
cache = context.job_cache
# use groups to nest related cache values
group = cache.group("some-group")
group["value"] = b"my-value"
nested = group.group("nested")
nested["value"] = b"nested-value"
# access nested groups directly via / notation
value = cache["some-group/nested/value"]
Was this page helpful?
Copy
Ask AI
# within a Tasks execute method, access the job cache
# def execute(context: ExecutionContext)
cache = context.job_cache
# use groups to nest related cache values
group = cache.group("some-group")
group["value"] = b"my-value"
nested = group.group("nested")
nested["value"] = b"nested-value"
# access nested groups directly via / notation
value = cache["some-group/nested/value"]
Assistant
Responses are generated using AI and may contain mistakes.