-
Notifications
You must be signed in to change notification settings - Fork 163
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
Conversation
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
3367301
to
dd8e549
Compare
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
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