Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChatGPT docstring changes #432

Open
wants to merge 42 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
5c6f645
Update condorMonitor.py
uziahmed3 Jul 15, 2024
0962e59
Update classadSupport.py
uziahmed3 Jul 15, 2024
5f1ae4e
Update cleanupSupport.py
uziahmed3 Jul 17, 2024
6da936e
Update condorExe.py
uziahmed3 Jul 17, 2024
84d1304
Update condorLogParser.py
uziahmed3 Jul 17, 2024
25d29c6
Update condorManager.py
uziahmed3 Jul 17, 2024
df807fa
Update condorSecurity.py
uziahmed3 Jul 17, 2024
4df2e94
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 19, 2024
21fa396
Merge branch 'glideinWMS:master' into master
uziahmed3 Jul 19, 2024
85bbab9
Update config_util.py
uziahmed3 Jul 24, 2024
d2d2d06
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 24, 2024
9d64844
Update defaults.py
uziahmed3 Jul 24, 2024
cb1548e
Update disk_cache.py
uziahmed3 Jul 24, 2024
fb60ecb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 24, 2024
f4db911
Update exprParser.py
uziahmed3 Jul 24, 2024
12c996b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 24, 2024
26c4656
Update fork.py
uziahmed3 Jul 24, 2024
918103c
Update glideinWMSVersion.py
uziahmed3 Jul 24, 2024
d3f07be
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 24, 2024
87c2116
Update hashCrypto.py
uziahmed3 Jul 24, 2024
de0f662
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 24, 2024
a1d397d
ChatGPT docstrings logSupport.py
uziahmed3 Aug 21, 2024
9d0d527
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 21, 2024
6473d17
ChatGPT docstrings pidSupport.py
uziahmed3 Aug 21, 2024
eb2b63c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 21, 2024
68ac3d9
ChatGPT docstrings pubCrypto.py
uziahmed3 Aug 21, 2024
2ebfbfe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 21, 2024
c88b561
ChatGPT docstrings rrdSupport.py
uziahmed3 Aug 21, 2024
c27f23a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 21, 2024
d30e296
ChatGPT docstrings servicePerformance.py
uziahmed3 Aug 21, 2024
80891a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 21, 2024
7a3d200
ChatGPT docstrings subprocessSupport.py
uziahmed3 Aug 21, 2024
8892904
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 21, 2024
32af96b
ChatGPT docStrings symCrypto.py
uziahmed3 Sep 22, 2024
2b04b62
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2024
c0b5a12
ChatGPT docStrings tarSupport.py
uziahmed3 Sep 22, 2024
25c5a9b
ChatGPT docStrings timeConversion.py
uziahmed3 Sep 22, 2024
ba29220
ChatGPT docStrings token_util.py
uziahmed3 Sep 22, 2024
91c2d48
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 22, 2024
f5c3073
AI Docstrings checkFrontend.py
uziahmed3 Nov 26, 2024
79c028e
AI Docstrings glideinFrontend.py
uziahmed3 Nov 26, 2024
1d0a957
DocStings glideinFrontendDowntimeLib.py
uziahmed3 Nov 26, 2024
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
32 changes: 22 additions & 10 deletions frontend/checkFrontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,32 @@
# SPDX-FileCopyrightText: 2009 Fermi Research Alliance, LLC
# SPDX-License-Identifier: Apache-2.0

"""Check if a glideinFrontend is running
"""Check if a glideinFrontend is running.

Arguments:
$1 = work_dir
$2 = (optional) run mode (defaults to "run")
This script checks whether a glideinFrontend is running in the specified
working directory. It optionally allows specifying a run mode.

Exit code:
0 - Running
1 - Not running anything
2 - Not running my types, but another type is indeed running
Usage:
python script_name.py <work_dir> [run_mode]

Args:
work_dir (str): The working directory to check for a running glideinFrontend.
run_mode (str, optional): The desired run mode to check for. Defaults to "run".

Exit Codes:
0: A glideinFrontend of the specified type is running.
1: No glideinFrontend is running.
2: A glideinFrontend of a different type is running.

Examples:
Check for a glideinFrontend running in "my_work_dir" with the default mode:
$ python check_glidein_frontend.py my_work_dir

Check for a glideinFrontend running in "my_work_dir" with a specific mode:
$ python check_glidein_frontend.py my_work_dir run
"""

import sys

from glideinwms.frontend import glideinFrontendPidLib

if __name__ == "__main__":
Expand All @@ -28,7 +40,7 @@
sys.exit(1)

if action_type is None:
# if not defined, assume it is the standard running type
# If not defined, assume it is the standard running type
action_type = "run"

if len(sys.argv) >= 3:
Expand Down
Loading