Is it possible to run this command using ShellTask? I tried to use `RedisExecute`as well but it complains about Secret, and i do not think my redis has password…Any help would be appreciated
m
Matt Conger
08/10/2022, 10:46 PM
Hi @Tomohiro Nakagawa The 127 error code indicates “command not found”. This occurs when any given command within your Bash script or on Bash command line is not found in any of the paths defined by PATH system environment variable.
The solution is to make sure that the command your are using can be found within your $PATH. If the command is not in your path either include it or use absolute full path to it.
💯 1
t
Tomohiro Nakagawa
08/10/2022, 10:48 PM
hi matt, thank you. how do i set $PATH in ecs? do you have any example?
k
Khuyen Tran
08/10/2022, 10:52 PM
Does running
prefect
command on your terminal work?
t
Tomohiro Nakagawa
08/10/2022, 10:53 PM
yes
prefect
command works on my terminal.
redis-cli
works too on my terminal
a
Anna Geller
08/11/2022, 12:02 AM
why do you run it as CLI commands rather than redis Python library? this tutorial showing how to use Redis might be helpful
Anna Geller
08/11/2022, 12:04 AM
If you run things on ECS, then they run within a container, from where you likely have no access to your Redis instance
you can try running it without Prefect first on ECS to ensure the base setup works fine in a container and then move to Prefect to orchestrate
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.