Skip to content

Commit

Permalink
correct reference to labeler
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellichen committed Apr 17, 2024
1 parent a13358b commit 57a2661
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ start_notebook_sv.sh
._*
*/._*
node_modules/
labeler/bundle.js

development.ipynb
meganno-auth.db
Expand Down
18 changes: 3 additions & 15 deletions api/app/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@
app.wsgi_app = PrefixMiddleware(app.wsgi_app, prefix=f"/{project_name}")
aws = boto3.Session(region_name="us-east-1")
if aws.get_credentials() is not None:
labeler_cluster_ARN = os.getenv("MEGANNO_CLUSTER_ARN", None)
meganno_cluster_ARN = os.getenv("MEGANNO_CLUSTER_ARN", None)
ecs = aws.client("ecs", region_name="us-east-1")
if pydash.is_empty(pydash.trim(MEGANNO_NEO4J_HOST)):
task_list = ecs.list_tasks(
cluster=labeler_cluster_ARN,
cluster=meganno_cluster_ARN,
serviceName=("neo4j-" + project_name),
desiredStatus="RUNNING",
launchType="FARGATE",
)
task_ARNs = task_list.get("taskArns", [])
print(f"task_ARNs {task_ARNs}")
task_description = ecs.describe_tasks(
cluster=labeler_cluster_ARN, tasks=task_ARNs
cluster=meganno_cluster_ARN, tasks=task_ARNs
)
task_description_list = task_description.get("tasks")
task = task_description_list[0]
Expand Down Expand Up @@ -233,15 +233,3 @@ def logging(response):
if MEGANNO_LOGGING:
traffic_logger.info(f"{response.status} ({response.status_code})")
return response


from app.routes import (
agents,
annotations,
assignments,
data,
schemas,
verifications,
views,
)
from app.routes.statistics import annotator, embeddings, label
1 change: 1 addition & 0 deletions auth/app/routes/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def register():
"444",
"castro",
"labeler",
"meganno",
payload["username"],
],
)
Expand Down

0 comments on commit 57a2661

Please sign in to comment.