-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation to the smoke tests infra (#8970)
- Loading branch information
Showing
10 changed files
with
94 additions
and
9 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
"""Signal Handlers for the smoke test.""" | ||
|
||
from celery.signals import worker_init, worker_process_init, worker_process_shutdown, worker_ready, worker_shutdown | ||
|
||
|
||
@worker_init.connect | ||
def worker_init_handler(sender, **kwargs): # type: ignore | ||
def worker_init_handler(sender, **kwargs): | ||
print("worker_init_handler") | ||
|
||
|
||
@worker_process_init.connect | ||
def worker_process_init_handler(sender, **kwargs): # type: ignore | ||
def worker_process_init_handler(sender, **kwargs): | ||
print("worker_process_init_handler") | ||
|
||
|
||
@worker_process_shutdown.connect | ||
def worker_process_shutdown_handler(sender, pid, exitcode, **kwargs): # type: ignore | ||
def worker_process_shutdown_handler(sender, pid, exitcode, **kwargs): | ||
print("worker_process_shutdown_handler") | ||
|
||
|
||
@worker_ready.connect | ||
def worker_ready_handler(sender, **kwargs): # type: ignore | ||
def worker_ready_handler(sender, **kwargs): | ||
print("worker_ready_handler") | ||
|
||
|
||
@worker_shutdown.connect | ||
def worker_shutdown_handler(sender, **kwargs): # type: ignore | ||
def worker_shutdown_handler(sender, **kwargs): | ||
print("worker_shutdown_handler") |
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,3 +1,5 @@ | ||
"""Smoke tests tasks.""" | ||
|
||
from __future__ import annotations | ||
|
||
import os | ||
|
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
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