Skip to content

Commit

Permalink
Reduce flake8 max-line-length (#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harichandra-Prasath authored Mar 4, 2024
1 parent af1d901 commit e364791
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# W504: line break after binary operator
# (Raised by flake8 even when it is followed)
ignore = E126, E402, E129, W504
max-line-length = 158
max-line-length = 157
exclude = test_import_fail.py,
parsl/executors/workqueue/parsl_coprocess.py
# E741 disallows ambiguous single letter names which look like numbers
Expand Down
3 changes: 2 additions & 1 deletion parsl/executors/high_throughput/process_worker_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def push_results(self, kill_event):
logger.exception("Got an exception: {}".format(e))

if time.time() > last_result_beat + self.heartbeat_period:
logger.info(f"Sending heartbeat via results connection: last_result_beat={last_result_beat} heartbeat_period={self.heartbeat_period} seconds")
heartbeat_message = f"last_result_beat={last_result_beat} heartbeat_period={self.heartbeat_period} seconds"
logger.info(f"Sending heartbeat via results connection: {heartbeat_message}")
last_result_beat = time.time()
items.append(pickle.dumps({'type': 'heartbeat'}))

Expand Down
7 changes: 5 additions & 2 deletions parsl/executors/workqueue/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@


# Support structure to communicate parsl tasks to the work queue submit thread.
ParslTaskToWq = namedtuple('ParslTaskToWq',
'id category cores memory disk gpus priority running_time_min env_pkg map_file function_file result_file input_files output_files')
ParslTaskToWq = namedtuple(
'ParslTaskToWq',
'id '
'category '
'cores memory disk gpus priority running_time_min env_pkg map_file function_file result_file input_files output_files')

# Support structure to communicate final status of work queue tasks to parsl
# if result_received is True:
Expand Down

0 comments on commit e364791

Please sign in to comment.