mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Add parallel requests TODO
This commit is contained in:
parent
b39f017d00
commit
8413e5148f
1
psu
1
psu
@ -122,6 +122,7 @@ main() {
|
|||||||
echo_verbose "List $scope tasks of stack '$PORTAINER_STACK_NAME'..."
|
echo_verbose "List $scope tasks of stack '$PORTAINER_STACK_NAME'..."
|
||||||
local services
|
local services
|
||||||
services="$(timeout -t $ROLLOUT_STATUS_TIMEOUT bash -c "until (export DEBUG_MODE=false && export VERBOSE_MODE=false && echo \"\$(psu -a services -q)\"); do sleep 1; done;")"
|
services="$(timeout -t $ROLLOUT_STATUS_TIMEOUT bash -c "until (export DEBUG_MODE=false && export VERBOSE_MODE=false && echo \"\$(psu -a services -q)\"); do sleep 1; done;")"
|
||||||
|
# TODO: Improve performance, find a way to do parallel requests
|
||||||
for service in $services; do
|
for service in $services; do
|
||||||
export PORTAINER_SERVICE_NAME=${service#"${PORTAINER_STACK_NAME}_"}
|
export PORTAINER_SERVICE_NAME=${service#"${PORTAINER_STACK_NAME}_"}
|
||||||
local new_tasks
|
local new_tasks
|
||||||
|
Loading…
Reference in New Issue
Block a user