Skip to content

Commit e4598e1

Browse files
authored
Fix typos discovered by codespell (#304)
1 parent 16513cb commit e4598e1

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ SCHEDULER_CONFIG = SchedulerConfiguration(
2525
SCHEDULER_INTERVAL=10,
2626
BROKER=Broker.REDIS,
2727
CALLBACK_TIMEOUT=60, # Callback timeout in seconds (success/failure/stopped)
28-
# Default values, can be overriden per task/job
28+
# Default values, can be overridden per task/job
2929
DEFAULT_SUCCESS_TTL=10 * 60, # Time To Live (TTL) in seconds to keep successful job results
3030
DEFAULT_FAILURE_TTL=365 * 24 * 60 * 60, # Time To Live (TTL) in seconds to keep job failure information
3131
DEFAULT_JOB_TTL=10 * 60, # Time To Live (TTL) in seconds to keep job information

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SCHEDULER_CONFIG = SchedulerConfiguration(
1414
SCHEDULER_INTERVAL=10,
1515
BROKER=Broker.REDIS,
1616
CALLBACK_TIMEOUT=60, # Callback timeout in seconds (success/failure/stopped)
17-
# Default values, can be overriden per task/job
17+
# Default values, can be overridden per task/job
1818
DEFAULT_SUCCESS_TTL=10 * 60, # Time To Live (TTL) in seconds to keep successful job results
1919
DEFAULT_FAILURE_TTL=365 * 24 * 60 * 60, # Time To Live (TTL) in seconds to keep job failure information
2020
DEFAULT_JOB_TTL=10 * 60, # Time To Live (TTL) in seconds to keep job information

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
SCHEDULER_INTERVAL=10,
6161
BROKER=Broker.REDIS,
6262
CALLBACK_TIMEOUT=60, # Callback timeout in seconds (success/failure/stopped)
63-
# Default values, can be overriden per task/job
63+
# Default values, can be overridden per task/job
6464
DEFAULT_SUCCESS_TTL=10 * 60, # Time To Live (TTL) in seconds to keep successful job results
6565
DEFAULT_FAILURE_TTL=365 * 24 * 60 * 60, # Time To Live (TTL) in seconds to keep job failure information
6666
DEFAULT_JOB_TTL=10 * 60, # Time To Live (TTL) in seconds to keep job information

scheduler/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def __init__(
4141
:param result_ttl: Result time to live
4242
:param job_info_ttl: Time to live for job info
4343
:param at_front: Whether to enqueue the job at front of the queue
44-
:param meta: Arbitraty metadata about the job
44+
:param meta: Arbitrary metadata about the job
4545
:param description: Job description
4646
:param on_failure: Callable to run on failure
4747
:param on_success: Callable to run on success

scheduler/helpers/timeouts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __exit__(self, type, value, traceback):
4343
# situation and consider the body done.
4444
pass
4545

46-
# __exit__ may return True to supress further exception handling. We don't want to suppress any exceptions
46+
# __exit__ may return True to suppress further exception handling. We don't want to suppress any exceptions
4747
# here, since all errors should just pass through, BaseTimeoutException being handled normally to the invoking
4848
# context.
4949
return False

scheduler/templates/admin/scheduler/job_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2>Job {{ job.name }}
8383
</div>
8484
</fieldset>
8585
<fieldset class="module aligned">
86-
<h2 class="fieldset-heading">Job queue interation</h2>
86+
<h2 class="fieldset-heading">Job queue interaction</h2>
8787
<div class="field-row">
8888
<div class="flex-container form-multiline">
8989
<div class="fieldBox">

scheduler/worker/worker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def bootstrap(self) -> None:
284284
"""Bootstraps the worker.
285285
Runs the basic tasks that should run when the worker actually starts working.
286286
Used so that new workers can focus on the work loop implementation rather
287-
than the full bootstraping process.
287+
than the full bootstrapping process.
288288
"""
289289
self.worker_start()
290290
self.log(INFO, f"Worker {self.name} started with PID {os.getpid()}")
@@ -563,7 +563,7 @@ def fork_job_execution_process(self, job: JobModel, queue: Queue) -> None:
563563
self._set_procline(f"Forked {child_pid} at {time.time()}")
564564

565565
def get_heartbeat_ttl(self, job: JobModel) -> int:
566-
"""Get's the TTL for the next heartbeat.
566+
"""Gets the TTL for the next heartbeat.
567567
:param job: The Job
568568
:return: The heartbeat TTL
569569
"""

0 commit comments

Comments
 (0)