Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion bin/crontab_scripts/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ FILES=$(find "$LOG_DIR" -type f \( -name "*_$TODAY.log" -o -name "*_$YESTERDAY.l
# Initialize an empty array to store files with matches
MATCHED_FILES=()

# Ignore errors with user profile service that trigger a re-try
IGNORE_PATTERN="SKIPPING profile batch for users"

# Check if any files were found
if [ -n "$FILES" ]; then
# Search for "exception" or "traceback" or "Errno" in the found files
for FILE in $FILES; do
if grep -qiE "exception|traceback|Errno" "$FILE"; then
if grep -iE "exception|traceback|Errno" "$FILE" | grep -qivE "$IGNORE_PATTERN"; then
MATCHED_FILES+=("$FILE")
fi
done
Expand Down
2 changes: 1 addition & 1 deletion source/daily_cron_jobs/upload_user_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
user_stats_dict = methods_upload_user_stats.get_user_narrative_stats(user_stats_dict)
user_stats_dict = methods_upload_user_stats.get_user_orcidlinks(user_stats_dict)
#user_stats_dict = methods_upload_user_stats.get_institution_and_country(user_stats_dict)
user_stats_dict = methods_upload_user_stats.get_profile_info(user_stats_dict, batch_size=500, max_retries=1)
user_stats_dict = methods_upload_user_stats.get_profile_info(user_stats_dict, batch_size=250, max_retries=3)
print("--- gather data %s seconds ---" % (time.time() - start_time))
methods_upload_user_stats.upload_user_data(user_stats_dict)
print(
Expand Down
Loading