Can you add an option to config for optional copy_current_request_context? I don't need this context in my functions. I'm running a background thread on server launch where request context doesn't exist yet. So it throws an error and I don't see any other way to fix this.
i.e.
change this:
fn = copy_current_request_context(fn)
to something like this:
if current_app.config[self.EXECUTOR_PUSH_REQUEST_CONTEXT]:
fn = copy_current_request_context(fn)
Can you add an option to config for optional
copy_current_request_context? I don't need this context in my functions. I'm running a background thread on server launch where request context doesn't exist yet. So it throws an error and I don't see any other way to fix this.i.e.
change this:
to something like this: