-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into introduce-vip-models-pricing-3-part
- Loading branch information
Showing
78 changed files
with
1,111 additions
and
754 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 |
---|---|---|
|
@@ -17,12 +17,12 @@ AGENT_VOLUMES_CLEANUP_S3_ENDPOINT=http://172.17.0.1:9001 | |
AGENT_VOLUMES_CLEANUP_S3_PROVIDER=MINIO | ||
AGENT_VOLUMES_CLEANUP_S3_REGION=us-east-1 | ||
AGENT_VOLUMES_CLEANUP_S3_SECRET_KEY=12345678 | ||
AGENT_TRACING={} | ||
AGENT_TRACING=null | ||
|
||
API_SERVER_DEV_FEATURES_ENABLED=0 | ||
API_SERVER_LOGLEVEL=INFO | ||
API_SERVER_PROFILING=1 | ||
API_SERVER_TRACING={} | ||
API_SERVER_TRACING=null | ||
TRAEFIK_API_SERVER_INFLIGHTREQ_AMOUNT=25 | ||
|
||
AUTOSCALING_DASK=null | ||
|
@@ -35,7 +35,7 @@ AUTOSCALING_LOGLEVEL=INFO | |
AUTOSCALING_NODES_MONITORING=null | ||
AUTOSCALING_POLL_INTERVAL="00:00:10" | ||
AUTOSCALING_SSM_ACCESS=null | ||
AUTOSCALING_TRACING={} | ||
AUTOSCALING_TRACING=null | ||
|
||
AWS_S3_CLI_S3=null | ||
|
||
|
@@ -47,7 +47,7 @@ CATALOG_PORT=8000 | |
CATALOG_PROFILING=1 | ||
CATALOG_SERVICES_DEFAULT_RESOURCES='{"CPU": {"limit": 0.1, "reservation": 0.1}, "RAM": {"limit": 2147483648, "reservation": 2147483648}}' | ||
CATALOG_SERVICES_DEFAULT_SPECIFICATIONS='{}' | ||
CATALOG_TRACING={} | ||
CATALOG_TRACING=null | ||
|
||
CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DEFAULT_CLUSTER_AUTH='{"type":"tls","tls_ca_file":"/home/scu/.dask/dask-crt.pem","tls_client_cert":"/home/scu/.dask/dask-crt.pem","tls_client_key":"/home/scu/.dask/dask-key.pem"}' | ||
CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG=master-github-latest | ||
|
@@ -61,7 +61,7 @@ CLUSTERS_KEEPER_MAX_MISSED_HEARTBEATS_BEFORE_CLUSTER_TERMINATION=5 | |
CLUSTERS_KEEPER_PRIMARY_EC2_INSTANCES=null | ||
CLUSTERS_KEEPER_TASK_INTERVAL=00:00:30 | ||
CLUSTERS_KEEPER_WORKERS_EC2_INSTANCES=null | ||
CLUSTERS_KEEPER_TRACING={} | ||
CLUSTERS_KEEPER_TRACING=null | ||
|
||
DASK_SCHEDULER_HOST=dask-scheduler | ||
DASK_SCHEDULER_PORT=8786 | ||
|
@@ -81,7 +81,7 @@ DIRECTOR_PUBLISHED_HOST_NAME="127.0.0.1:9081" | |
DIRECTOR_REGISTRY_CACHING_TTL=00:15:00 | ||
DIRECTOR_REGISTRY_CACHING=True | ||
DIRECTOR_SERVICES_CUSTOM_CONSTRAINTS=null | ||
DIRECTOR_TRACING={} | ||
DIRECTOR_TRACING=null | ||
|
||
EFS_USER_ID=8006 | ||
EFS_USER_NAME=efs | ||
|
@@ -90,11 +90,11 @@ EFS_GROUP_NAME=efs-group | |
EFS_DNS_NAME=fs-xxx.efs.us-east-1.amazonaws.com | ||
EFS_MOUNTED_PATH=/tmp/efs | ||
EFS_PROJECT_SPECIFIC_DATA_DIRECTORY=project-specific-data | ||
EFS_GUARDIAN_TRACING={} | ||
EFS_GUARDIAN_TRACING=null | ||
EFS_DEFAULT_USER_SERVICE_SIZE_BYTES=10000 | ||
|
||
# DATCORE_ADAPTER | ||
DATCORE_ADAPTER_TRACING={} | ||
DATCORE_ADAPTER_TRACING=null | ||
|
||
# DIRECTOR_V2 ---- | ||
COMPUTATIONAL_BACKEND_DEFAULT_CLUSTER_AUTH='{"type":"tls","tls_ca_file":"/home/scu/.dask/dask-crt.pem","tls_client_cert":"/home/scu/.dask/dask-crt.pem","tls_client_key":"/home/scu/.dask/dask-key.pem"}' | ||
|
@@ -121,14 +121,14 @@ DYNAMIC_SIDECAR_LOG_LEVEL=DEBUG | |
DYNAMIC_SIDECAR_PROMETHEUS_MONITORING_NETWORKS=[] | ||
DYNAMIC_SIDECAR_PROMETHEUS_SERVICE_LABELS={} | ||
DYNAMIC_SIDECAR_API_SAVE_RESTORE_STATE_TIMEOUT=01:00:00 | ||
DIRECTOR_V2_TRACING={} | ||
DIRECTOR_V2_TRACING=null | ||
|
||
# DYNAMIC_SCHEDULER ---- | ||
DYNAMIC_SCHEDULER_LOGLEVEL=DEBUG | ||
DYNAMIC_SCHEDULER_PROFILING=1 | ||
DYNAMIC_SCHEDULER_USE_INTERNAL_SCHEDULER=0 | ||
DYNAMIC_SCHEDULER_STOP_SERVICE_TIMEOUT=01:00:00 | ||
DYNAMIC_SCHEDULER_TRACING={} | ||
DYNAMIC_SCHEDULER_TRACING=null | ||
DYNAMIC_SCHEDULER_UI_STORAGE_SECRET=adminadmin | ||
|
||
FUNCTION_SERVICES_AUTHORS='{"UN": {"name": "Unknown", "email": "[email protected]", "affiliation": "unknown"}}' | ||
|
@@ -143,7 +143,7 @@ INVITATIONS_PORT=8000 | |
INVITATIONS_SECRET_KEY='REPLACE_ME_with_result__Fernet_generate_key=' | ||
INVITATIONS_SWAGGER_API_DOC_ENABLED=1 | ||
INVITATIONS_USERNAME=admin | ||
INVITATIONS_TRACING={} | ||
INVITATIONS_TRACING=null | ||
|
||
LOG_FORMAT_LOCAL_DEV_ENABLED=1 | ||
LOG_FILTER_MAPPING='{}' | ||
|
@@ -168,7 +168,7 @@ PAYMENTS_STRIPE_API_SECRET='REPLACE_ME_with_api_secret' | |
PAYMENTS_STRIPE_URL=https://api.stripe.com | ||
PAYMENTS_SWAGGER_API_DOC_ENABLED=1 | ||
PAYMENTS_USERNAME=admin | ||
PAYMENTS_TRACING={} | ||
PAYMENTS_TRACING=null | ||
|
||
POSTGRES_DB=simcoredb | ||
POSTGRES_ENDPOINT=postgres:5432 | ||
|
@@ -209,7 +209,7 @@ RESOURCE_USAGE_TRACKER_MISSED_HEARTBEAT_CHECK_ENABLED=1 | |
RESOURCE_USAGE_TRACKER_MISSED_HEARTBEAT_COUNTER_FAIL=6 | ||
RESOURCE_USAGE_TRACKER_MISSED_HEARTBEAT_INTERVAL_SEC=300 | ||
RESOURCE_USAGE_TRACKER_S3=null | ||
RESOURCE_USAGE_TRACKER_TRACING={} | ||
RESOURCE_USAGE_TRACKER_TRACING=null | ||
|
||
# NOTE: 172.17.0.1 is the docker0 interface, which redirect from inside a container onto the host network interface. | ||
R_CLONE_OPTION_BUFFER_SIZE=16M | ||
|
@@ -243,7 +243,7 @@ STORAGE_HOST=storage | |
STORAGE_LOGLEVEL=INFO | ||
STORAGE_PORT=8080 | ||
STORAGE_PROFILING=1 | ||
STORAGE_TRACING={} | ||
STORAGE_TRACING=null | ||
# STORAGE ---- | ||
|
||
SWARM_STACK_NAME=master-simcore | ||
|
@@ -389,6 +389,6 @@ WEBSERVER_SOCKETIO=1 | |
WEBSERVER_STATICWEB={} | ||
WEBSERVER_STUDIES_DISPATCHER={} | ||
WEBSERVER_TAGS=1 | ||
WEBSERVER_TRACING={} | ||
WEBSERVER_TRACING=null | ||
WEBSERVER_USERS={} | ||
WEBSERVER_VERSION_CONTROL=1 |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from typing import Any | ||
|
||
|
||
class UnSet: | ||
VALUE: "UnSet" | ||
|
||
|
||
UnSet.VALUE = UnSet() | ||
|
||
|
||
def as_dict_exclude_unset(**params) -> dict[str, Any]: | ||
return {k: v for k, v in params.items() if not isinstance(v, UnSet)} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Any | ||
|
||
from common_library.unset import UnSet, as_dict_exclude_unset | ||
|
||
|
||
def test_as_dict_exclude_unset(): | ||
def f( | ||
par1: str | UnSet = UnSet.VALUE, par2: int | UnSet = UnSet.VALUE | ||
) -> dict[str, Any]: | ||
return as_dict_exclude_unset(par1=par1, par2=par2) | ||
|
||
assert f() == {} | ||
assert f(par1="hi") == {"par1": "hi"} | ||
assert f(par2=4) == {"par2": 4} | ||
assert f(par1="hi", par2=4) == {"par1": "hi", "par2": 4} |
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
Oops, something went wrong.