Skip to content

Commit 9f878fd

Browse files
committed
Fixing whitespace, reverting schedule
1 parent 9a9b26a commit 9f878fd

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/deploy-to-staging.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
name: Deploy to staging SCP instance
22
on:
3-
schedule:
4-
- cron: "15 8 * * 1-5"
53
workflow_run:
64
workflows: ["Build and publish single-cell-portal Docker image"]
75
types:

bin/restart_portal_container.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# crontab entry should be as follows:
55
# */5 * * * * /root/restart_portal_container.sh > /dev/null 2>&1
66
docker ps --filter "status=exited" | grep -e 'single_cell' | while read -r line ; do
7-
container_id=`echo $line | awk '{print $1}'`
8-
container_name=`echo $line | awk '{print $NF}'`
9-
echo "Restarting $container_name ($container_id) on $(date)" >> /home/jenkins/deployments/single_cell_portal_core/log/cron_out.log
10-
docker restart $container_id
7+
container_id=`echo $line | awk '{print $1}'`
8+
container_name=`echo $line | awk '{print $NF}'`
9+
echo "Restarting $container_name ($container_id) on $(date)" >> /home/jenkins/deployments/single_cell_portal_core/log/cron_out.log
10+
docker restart $container_id
1111
done

0 commit comments

Comments
 (0)