Skip to content

Commit

Permalink
Merge pull request #205 from HSF/dev
Browse files Browse the repository at this point in the history
fix log rotation
  • Loading branch information
wguanicedew authored Sep 18, 2023
2 parents 97c45cc + be5cfa3 commit 7a2b50d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions main/config_default/logrotate_idds
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
compress
delaycompress
postrotate
/usr/bin/supervisorctl stop all > /dev/null 2>/dev/null || true
/usr/bin/supervisorctl start all > /dev/null 2>/dev/null || true
/usr/bin/supervisorctl stop httpd > /dev/null 2>/dev/null || true
/usr/bin/supervisorctl start httpd > /dev/null 2>/dev/null || true
/usr/bin/supervisorctl stop idds-server > /dev/null 2>/dev/null || true
/usr/bin/supervisorctl start idds-server > /dev/null 2>/dev/null || true
endscript
}
2 changes: 1 addition & 1 deletion main/lib/idds/tests/test_workflow_condition_v2_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_workflow_condition():
# print(workflow_str)
workflow1 = json_loads(workflow_str)

workflow_str1 = json_dumps(workflow1, sort_keys=True, indent=4)
workflow_str1 = json_dumps(workflow1, sort_keys=True, indent=4) # noqa F841
# print(workflow_str1)

# assert(sorted(json.loads(workflow_str).items()) == sorted(json.loads(workflow_str1).items()))
Expand Down

0 comments on commit 7a2b50d

Please sign in to comment.