Skip to content

Add configurable timeout to cache upload #958

@edoardopirovano

Description

@edoardopirovano

Over in the CodeQL team, we've recently started using the Actions cache (via the toolkit) in a scenario where we care only fairly minimally about the upload/download succeeding (it's entirely optional) but we really care about returning quickly. In the cache downloading options, we found the segmentTimeoutInMs field (here) which serves our use case well since we can set this to a small number to make sure we return quickly (our caches are small so they always fit in one segment).

However, there is no such option in the uploading options. Is there any chance you would be able to support this? We've considered some hacky workarounds like spawning a new process to do the upload, but it would really be much more robust if we could configure a timeout there in the same way we can do for the download.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions