Conversation
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
|
Has this been tested? |
modules/nextflow/src/main/groovy/nextflow/k8s/K8sTaskHandler.groovy
Outdated
Show resolved
Hide resolved
|
Do you think there's a real need for this log? or it's just for consistency with other executors? |
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
|
There are cases where things get printed to I think these changes are correct, but it wasn't working during the full test because |
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
|
Okay, I figured out how to test with k8s like you showed, but I hit some weird errors. So I backed up to However, I don't see anything wrong with the pod yaml: It says it can't find |
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
|
It says bit weird tho |
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
|
ok, found the reasons, the pipe concatenation should be executed as a subshell. But still not sure, not see a big value to add this log because this is running within the container. it only helps when the .command.run crashes .. (that the reason why you want to add :)) |
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
|
I believe the original motivation was that Even if it's a small improvement, why not do it? The awsbatch executor does the same thing for a similar reason: |
|
Also, thanks for the fix. I thought it was already executing in a shell but I forgot about the |
Well, mainly to prevent the creation of files, but I agree it can be useful to debug the launcher script and it's consistent with the existing pattern. Can you please have a look to the failing tests and then I'll merge it. tx! |
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
2c461f8 to
23432f3
Compare
e2b4a93 to
f32ea0b
Compare
cefb067 to
e523afd
Compare
0d59b4c to
b93634e
Compare
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
|
@pditommaso This PR is old so I updated it and cleaned it up. It is ready to merge whenever you want. |
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
81f7cb7 to
8a43489
Compare
|
I believe fetching the log over the stream it's better because it allows capturing the error output even when the Likely the best would be to implement both approaches (.command.log and fallback to the stream if missing), but I think it's overkill without a real need. Closing without merging. We can reconsider it in the future. |
|
Fetching the log in this manner does not work when the pod is deleted immediately, for example: |
|
Interestingly this particular failure happens because the file already exists: But I checked this file and it is empty. Does Fusion create this file automatically? |
|
The pod should not be deleted |
Resolves #2364
This PR updates the K8s task handler to always save
.command.log. I also removed some code that saved the log for failed pods in a more roundabout way.However, although the build succeeds and the relevant tests pass, I haven't gotten it to work in my local environment. The task pod command is still:
when it should be:
Am I missing something?