diff --git a/app-engine-sched/app.yaml b/app-engine-sched/app.yaml index 2e3a1dc..51f2dd5 100644 --- a/app-engine-sched/app.yaml +++ b/app-engine-sched/app.yaml @@ -1,6 +1,6 @@ runtime: python37 env_variables: - admin_project_id: "" + admin_project_id: "${project-with-your-slot-reservations}" max_slots: "1000" - delete_queue: "" \ No newline at end of file + delete_queue: "projects/${project-with-your-app-engine}/locations/us-central1/queues/${name-of-queue-you-made}" diff --git a/app-engine-sched/main.py b/app-engine-sched/main.py index 8b3c573..2f0134f 100644 --- a/app-engine-sched/main.py +++ b/app-engine-sched/main.py @@ -130,11 +130,6 @@ def server_error(e): if __name__ == '__main__': -""" - os.environ['admin_project_id'] = '' - os.environ['max_slots'] = "1000" - os.environ['delete_queue'] = "projects/{}/locations/us-central1/queues/{}" -""" app.run() diff --git a/app-engine-sched/requirements.txt b/app-engine-sched/requirements.txt index 7429bcf..248d01c 100644 --- a/app-engine-sched/requirements.txt +++ b/app-engine-sched/requirements.txt @@ -1,4 +1,4 @@ Flask -google-cloud-bigquery-reservation +google-cloud-bigquery-reservation==0.4.2 google-cloud-tasks - +pytz