remember failed tasks in a separate directory
This commit is contained in:
parent
2ff8ed76d0
commit
022ae5ab58
@ -6,11 +6,14 @@ source credentials.sh
|
|||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
for i in $PWD/tasks/*; do
|
for i in $PWD/tasks/*; do
|
||||||
echo "$(date): Importing $(basename $i)"
|
if test -f "$i"; then
|
||||||
if ! python3 ./git-importer.py -c repos/.cache $(basename $i); then
|
echo "$(date): Importing $(basename $i)"
|
||||||
mkdir -p $PWD/failed-tasks
|
if ! python3 ./git-importer.py -c repos/.cache $(basename $i); then
|
||||||
mv $i $PWD/failed-tasks
|
mkdir -p $PWD/failed-tasks
|
||||||
fi
|
mv -f $i $PWD/failed-tasks
|
||||||
|
fi
|
||||||
|
rm -f $i
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
inotifywait -q -e create $PWD/tasks
|
inotifywait -q -e create $PWD/tasks
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user