Add temporary check to block production resolve
+import os
from datetime import datetime
from flask import Flask
@@ -28,6 +29,8 @@ def create_worker():
@app.route('/resolve', methods=['POST'])
def resolve():
+ if not os.environ.get('PRIVATE'):
+ return 'hullo'
return tasks.resolve.delay().id
@app.route('/health', methods=['GET', 'POST'])
