Trevor Campbell
09/07/2021, 6:34 AMTrevor Campbell
09/07/2021, 6:44 AMprefect server start
basically so that I can access the UI (all default settings except backend="server"
)
I'm running a local agent via prefect agent local start
(all default settings)
There is a first task that generates a list of about 4000 subm
objects -- each subm
is just a dict with a few short strings in it
Then the second task that gets mapped over them has a definition like so (info
is unmapped
, and is also just a simple dict with a few strings):
def generate_name(info, subm, **kwargs):
return subm['name']
@task(checkpoint=False,task_run_name=generate_name)
def mytask(info, subm):
# very basic manipulation of strings in subm
return subm
After the task is done, I see this from docker stats
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS [0/1919]
30c00fa1d655 tmp_postgres_1 0.17% 229MiB / 31.32GiB 0.71% 128MB / 43.1MB 5.21MB / 662MB 13
5375bf303c9a tmp_apollo_1 0.00% 127MiB / 31.32GiB 0.40% 61.2MB / 62.4MB 143kB / 16.4kB 24
768f79e8b547 tmp_towel_1 0.00% 57.19MiB / 31.32GiB 0.18% 94.3kB / 126kB 295kB / 0B 50
ba02411b5786 tmp_hasura_1 0.31% 197.6MiB / 31.32GiB 0.62% 115MB / 166MB 102kB / 0B 66
b006569137c6 tmp_ui_1 0.01% 16.72MiB / 31.32GiB 0.05% 8.51kB / 0B 12.3kB / 4.1kB 16
422e1063ab0e tmp_graphql_1 0.18% 78.36MiB / 31.32GiB 0.24% 76.7MB / 88.7MB 0B / 0B 66
While the task is running, I see rapid-fire graphql
log messages from the server console like so:
graphql_1 | INFO: 172.19.0.5:56136 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56144 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56150 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56158 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56168 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56194 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56196 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56212 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56204 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56234 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56232 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56240 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56252 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56246 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56264 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56272 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56278 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56286 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56294 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56308 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56310 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56312 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56318 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56332 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56344 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56330 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56346 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56352 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56370 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56358 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56386 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56410 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56420 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56426 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56432 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56438 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56446 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56456 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56464 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56470 - "POST /graphql/ HTTP/1.1" 200 OK
graphql_1 | INFO: 172.19.0.5:56484 - "POST /graphql/ HTTP/1.1" 200 OK
Trevor Campbell
09/07/2021, 6:48 AMKevin Kho
Trevor Campbell
09/07/2021, 4:58 PMTrevor Campbell
09/07/2021, 4:59 PMprefect_server
db from postgres to CSV files, and they amounted to about 10MBTrevor Campbell
09/07/2021, 5:00 PMtmp_postgres_1
container I'm not aware of?Kevin Kho
Trevor Campbell
09/07/2021, 5:00 PMKevin Kho
Trevor Campbell
09/07/2021, 5:01 PMTrevor Campbell
09/07/2021, 5:03 PMprefect
branch
all of the prefect code I'm using can be found in [repo-root]/rudaux/rudaux/
the flows.py
file contains the code to construct my flows. The offending flow is in the build_autoext_flows
function.
The submissions.py
file contains the offending task -- the compute_deadline
task