Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[shim] Implement multi-task state #2078

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

un-def
Copy link
Collaborator

@un-def un-def commented Dec 10, 2024

The shim is now able to process multiple tasks at a time. The global state for the existing "legacy" API is emulated. From the API caller's point of view, the shim works exactly the same as before.

Part-of: #1780

@un-def un-def requested a review from jvstme December 10, 2024 15:49
The shim is now able to process multiple tasks at a time.
The global state for the existing "legacy" API is emulated.
From the API caller's point of view, the shim works exactly
the same as before.

Part-of: #1780
@un-def un-def force-pushed the issue_1780_shim_multitask_state branch from 3367301 to dd8e549 Compare December 10, 2024 16:01
d.containerID = containerID
d.containerName = cfg.ContainerName
log.Printf("Running container, name=%s, id=%s\n", d.containerName, containerID)
log.Printf("Running container, name=%s, id=%s\n", task.containerName, containerID)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered switching to a level-aware logging like logrus used in the runner?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not pushing to include it in this PR, but it seems to make sense to do such changes when refactoring.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logging facility revamping is in the plans, will be eventually submitted as a separate PR.

runner/internal/shim/docker.go Show resolved Hide resolved
runner/internal/shim/docker.go Outdated Show resolved Hide resolved
runner/internal/shim/docker.go Outdated Show resolved Hide resolved
@un-def un-def merged commit d235052 into master Dec 12, 2024
23 checks passed
@un-def un-def deleted the issue_1780_shim_multitask_state branch December 12, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants