-
Notifications
You must be signed in to change notification settings - Fork 0
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 #206 from lsst-sqre/tickets/DM-45138
DM-45138: Add summary and description for added routes
- Loading branch information
Showing
5 changed files
with
82 additions
and
47 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
from pydantic import BaseModel, SecretStr | ||
from safir.arq import ArqMode, JobMetadata, MockArqQueue | ||
|
||
from vocutouts.uws.config import ParametersModel, UWSConfig | ||
from vocutouts.uws.config import ParametersModel, UWSConfig, UWSRoute | ||
from vocutouts.uws.dependencies import UWSFactory | ||
from vocutouts.uws.models import UWSJob, UWSJobParameter, UWSJobResult | ||
|
||
|
@@ -71,16 +71,22 @@ def build_uws_config() -> UWSConfig: | |
host=os.environ["REDIS_HOST"], | ||
port=int(os.environ["REDIS_6379_TCP_PORT"]), | ||
), | ||
async_post_dependency=_post_dependency, | ||
async_post_route=UWSRoute( | ||
dependency=_post_dependency, summary="Create async job" | ||
), | ||
database_url=database_url, | ||
database_password=SecretStr(os.environ["POSTGRES_PASSWORD"]), | ||
execution_duration=timedelta(minutes=10), | ||
lifetime=timedelta(days=1), | ||
parameters_type=SimpleParameters, | ||
signing_service_account="[email protected]", | ||
slack_webhook=SecretStr("https://example.com/fake-webhook"), | ||
sync_get_dependency=_get_dependency, | ||
sync_post_dependency=_post_dependency, | ||
sync_get_route=UWSRoute( | ||
dependency=_get_dependency, summary="Sync request" | ||
), | ||
sync_post_route=UWSRoute( | ||
dependency=_post_dependency, summary="Sync request" | ||
), | ||
worker="hello", | ||
) | ||
|
||
|