-
Notifications
You must be signed in to change notification settings - Fork 225
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
Directory extraction task in workflow extracts unexpected items #1816
Comments
Hello, @ishizuka-mihoko It is necessary to write the detail about your environment and reproduce steps for investigate the issue. I tried to reproduce the problem. But It seems work well in my environment.
_export:
plugin:
repositories:
- https://jitpack.io/
dependencies:
- com.github.takemikami:digdag-plugin-shresult:0.0.3
+find_dirs:
sh_result>: |
find . -maxdepth 1 -type d -exec basename {} \; | grep -v "^.$" | grep -E '^\[' | sort -u | tr '\n' ',' | sed 's/,$//'
destination_variable: dirs
stdout_format: text
+call_dig:
for_each>:
dir: "${dirs.split(',')}"
_parallel: true
_do:
+loop_dig:
call>: ${dir}/unload.dig
|
Hello, @hiroyuki-sato
In my environment too, it generally works well, but occasionally, I observe behavior where it extracts incorrect information.
There could be a possibility that the issue is related to the plugin itself. Depending on the situation, I might consider reaching out to the plugin's support for assistance. |
I have a question about Digdag workflows.
In a .dig file, I have the following configuration:
In the ‘+find_dirs’ task, I’m attempting to extract directory names that start with ‘[’ and store them in the ‘dirs’ variable. However, during Digdag execution, there are instances where items other than directory names starting with ‘[’ are being stored in ‘dirs’.
Is this potentially a bug in Digdag? I would appreciate your confirmation.
Here are the ‘dirs’ values that I want to extract and the ‘dirs’ values that were mistakenly extracted in this operation:
Desired ‘dirs’:
dirs: [foo1]bar1,[foo2]bar2,[foo3]bar3,[foo4]bar4
‘Dirs’ extracted in the current operation (Example 1: Code from the executed workflow’s .dig file is being extracted):
‘Dirs’ extracted in the current operation (Example 2: Logs from other projects executed at the same time are being extracted):
The text was updated successfully, but these errors were encountered: