File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"template" : " https://github.com/kjaymiller/cookiecutter-relecloud" ,
3
- "commit" : " 5361c11e1ead790f7eb0b7a15cd6e803c44c4d7e " ,
4
- "checkout" : null ,
3
+ "commit" : " f86115e94dda2639d5678dad3a3232bacf583af2 " ,
4
+ "checkout" : " picklefix " ,
5
5
"context" : {
6
6
"cookiecutter" : {
7
7
"project_name" : " azure" ,
Original file line number Diff line number Diff line change 5
5
push :
6
6
branches :
7
7
- main
8
- - cruft/update*
8
+ - cruft/update
9
9
10
10
# GitHub Actions workflow to deploy to Azure using azd
11
11
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`
Original file line number Diff line number Diff line change
1
+ import multiprocessing
1
2
import os
2
3
import pathlib
3
- from multiprocessing import Process
4
4
5
5
import ephemeral_port_reserve
6
6
import pytest
7
7
from flask import Flask
8
8
9
9
from flaskapp import create_app , db , seeder
10
10
11
+ # Set start method to "fork" to avoid issues with pickling on OSes that default to "spawn"
12
+ multiprocessing .set_start_method ("fork" )
13
+
11
14
12
15
def run_server (app : Flask , port : int ):
13
16
app .run (port = port , debug = False )
@@ -51,7 +54,7 @@ def live_server_url(app_with_db):
51
54
# Start the process
52
55
hostname = ephemeral_port_reserve .LOCALHOST
53
56
free_port = ephemeral_port_reserve .reserve (hostname )
54
- proc = Process (
57
+ proc = multiprocessing . Process (
55
58
target = run_server ,
56
59
args = (
57
60
app_with_db ,
You can’t perform that action at this time.
0 commit comments