Skip to content
This repository was archived by the owner on Dec 1, 2025. It is now read-only.
This repository was archived by the owner on Dec 1, 2025. It is now read-only.

Asure sync between query-schedule and result #545

@achaikou

Description

@achaikou

Real case scenario from failing integration test:

Client fails with
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http://server:8080/result/5e66997e-8b8d-4647-b43c-1bbae77dd54c/stream
because this runs earlier than this (or something nearby) is run.
Can be reproduced by manually adding timeout before operation in Schedule.

Logs from real-world scenario

api_1       | 2022-04-12T20:53:48.067639267Z 2022/04/12 20:53:48 Getting URL http://filesystem:8112/471b957eb8e7ee7e9bdfdc93a6992d7264a77a77
api_1       | 2022-04-12T20:53:48.069646883Z [GIN] 2022/04/12 - 20:53:48 | 200 |    2.128124ms |      172.18.0.6 | POST     "/graphql"
server_1    | 2022-04-12T20:53:48.069781291Z 172.18.0.8 - - [12/Apr/2022:20:53:48 +0000] "POST /graphql HTTP/1.1" 200 265 "-" "python-requests/2.27.1"
server_1    | 2022-04-12T20:53:48.080776530Z 172.18.0.8 - - [12/Apr/2022:20:53:48 +0000] "GET /result/5e66997e-8b8d-4647-b43c-1bbae77dd54c/stream HTTP/1.1" 404 0 "-" "python-requests/2.27.1"
result_1    | 2022-04-12T20:53:48.080837733Z 2022/04/12 20:53:48 Unable to get process header: redis: nil
result_1    | 2022-04-12T20:53:48.080867235Z [GIN] 2022/04/12 - 20:53:48 | 404 |    4.053535ms |      172.18.0.6 | GET      "/result/5e66997e-8b8d-4647-b43c-1bbae77dd54c/stream"
fragment_1  | 2022-04-12T20:53:48.082279017Z 2022/04/12 20:53:48 pid=5e66997e-8b8d-4647-b43c-1bbae77dd54c, part=0/1 ready
fragment_1  | 2022-04-12T20:53:48.083164068Z 2022/04/12 20:53:48 pid=5e66997e-8b8d-4647-b43c-1bbae77dd54c, part=0/1 written to storage

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions