-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from PanDAWMS/next
3.8.1.66
- Loading branch information
Showing
85 changed files
with
4,497 additions
and
3,322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.7.9.1 | ||
3.8.1.66 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Authors: | ||
- Paul Nilsson, [email protected], 2018 | ||
- Paul Nilsson, [email protected], 2018-24 | ||
|
||
info components | ||
=============== | ||
|
@@ -23,6 +23,5 @@ info components | |
infoservice | ||
jobdata | ||
jobinfo | ||
jobinfoservice | ||
queuedata | ||
storagedata |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Authors: | ||
- Paul Nilsson, [email protected], 2018-2019 | ||
- Paul Nilsson, [email protected], 2018-24 | ||
|
||
resource components | ||
=================== | ||
|
@@ -19,5 +19,4 @@ resource components | |
bnl | ||
generic | ||
nersc | ||
summit | ||
titan |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ | |
# under the License. | ||
# | ||
# Authors: | ||
# - Mario Lassnig, [email protected], 2016-2017 | ||
# - Mario Lassnig, [email protected], 2016-17 | ||
# - Daniel Drizhuk, [email protected], 2017 | ||
# - Paul Nilsson, [email protected], 2017-2024 | ||
# - Paul Nilsson, [email protected], 2017-24 | ||
|
||
"""This is the entry point for the PanDA Pilot, executed with 'python3 pilot.py <args>'.""" | ||
|
||
|
@@ -39,29 +39,30 @@ | |
from pilot.common.exception import PilotException | ||
from pilot.info import infosys | ||
from pilot.util.auxiliary import ( | ||
convert_signal_to_exit_code, | ||
pilot_version_banner, | ||
shell_exit_code, | ||
convert_signal_to_exit_code | ||
) | ||
from pilot.util.config import config | ||
from pilot.util.constants import ( | ||
get_pilot_version, | ||
SUCCESS, | ||
FAILURE, | ||
ERRNO_NOJOBS, | ||
PILOT_START_TIME, | ||
FAILURE, | ||
PILOT_END_TIME, | ||
SERVER_UPDATE_NOT_DONE, | ||
PILOT_MULTIJOB_START_TIME, | ||
PILOT_START_TIME, | ||
SERVER_UPDATE_NOT_DONE, | ||
SUCCESS, | ||
) | ||
from pilot.util.cvmfs import ( | ||
cvmfs_diagnostics, | ||
get_last_update, | ||
is_cvmfs_available, | ||
get_last_update | ||
) | ||
from pilot.util.filehandling import ( | ||
get_pilot_work_dir, | ||
mkdirs, | ||
store_base_urls | ||
) | ||
from pilot.util.harvester import ( | ||
is_harvester_mode, | ||
|
@@ -72,6 +73,7 @@ | |
get_panda_server, | ||
https_setup, | ||
send_update, | ||
update_local_oidc_token_info | ||
) | ||
from pilot.util.loggingsupport import establish_logging | ||
from pilot.util.networking import dump_ipv6_info | ||
|
@@ -116,8 +118,11 @@ def main() -> int: | |
https_setup(args, get_pilot_version()) | ||
args.amq = None | ||
|
||
# update the OIDC token if necessary | ||
update_local_oidc_token_info(args.url, args.port) | ||
|
||
# let the server know that the worker has started | ||
if args.update_server: | ||
if args.update_server and args.workerpilotstatusupdate: | ||
send_worker_status( | ||
"started", args.queue, args.url, args.port, logger, "IPv6" | ||
) # note: assuming IPv6, fallback in place | ||
|
@@ -160,6 +165,9 @@ def main() -> int: | |
) | ||
logger.debug(f'PILOT_RUCIO_SITENAME={os.environ.get("PILOT_RUCIO_SITENAME")}') | ||
|
||
#os.environ['RUCIO_ACCOUNT'] = 'atlpilo1' | ||
#logger.warning(f"enforcing RUCIO_ACCOUNT={os.environ.get('RUCIO_ACCOUNT')}") | ||
|
||
# store the site name as set with a pilot option | ||
environ[ | ||
"PILOT_SITENAME" | ||
|
@@ -171,6 +179,8 @@ def main() -> int: | |
f"pilot.workflow.{args.workflow}", globals(), locals(), [args.workflow], 0 | ||
) | ||
|
||
# check if real-time logging is requested for this queue | ||
#rtloggingtype | ||
# update the pilot heartbeat file | ||
update_pilot_heartbeat(time.time()) | ||
|
||
|
@@ -182,7 +192,7 @@ def main() -> int: | |
exitcode = None | ||
|
||
# let the server know that the worker has finished | ||
if args.update_server: | ||
if args.update_server and args.workerpilotstatusupdate: | ||
send_worker_status( | ||
"finished", | ||
args.queue, | ||
|
@@ -357,15 +367,20 @@ def get_args() -> Any: | |
required=False, # From v 2.2.1 the site name is internally set | ||
help="OBSOLETE: site name (e.g., AGLT2_TEST)", | ||
) | ||
|
||
# graciously stop pilot process after hard limit | ||
arg_parser.add_argument( | ||
"-j", | ||
"--joblabel", | ||
dest="job_label", | ||
default="ptest", | ||
help="Job prod/source label (default: ptest)", | ||
) | ||
arg_parser.add_argument( | ||
"-g", | ||
"--baseurls", | ||
dest="baseurls", | ||
default="", | ||
help="Comma separated list of base URLs for validation of trf download", | ||
) | ||
|
||
# pilot version tag; PR or RC | ||
arg_parser.add_argument( | ||
|
@@ -385,6 +400,15 @@ def get_args() -> Any: | |
help="Disable server updates", | ||
) | ||
|
||
arg_parser.add_argument( | ||
"-k", | ||
"--noworkerpilotstatusupdate", | ||
dest="workerpilotstatusupdate", | ||
action="store_false", | ||
default=True, | ||
help="Disable updates to updateWorkerPilotStatus", | ||
) | ||
|
||
arg_parser.add_argument( | ||
"-t", | ||
"--noproxyverification", | ||
|
@@ -842,7 +866,7 @@ def send_worker_status( | |
port: str, | ||
logger: Any, | ||
internet_protocol_version: str, | ||
) -> None: | ||
): | ||
""" | ||
Send worker info to the server to let it know that the worker has started. | ||
|
@@ -956,6 +980,10 @@ def list_zombies(): | |
# set environment variables (to be replaced with singleton implementation) | ||
set_environment_variables() | ||
|
||
# store base URLs in a file if set | ||
if args.baseurls: | ||
store_base_urls(args.baseurls) | ||
|
||
# execute main function | ||
trace = main() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.