https://prefect.io logo
Title
s

Sven Teresniak

07/20/2020, 12:14 PM
# prefect run server -n flow2 -l
Flow Run: <http://localhost:8080/flow-run/e82df5c1-d197-46f1-9bb1-f18f9335e0f8>
TIMESTAMP                         LEVEL    MESSAGE
2020-07-20T12:09:56.284609+00:00  INFO     Submitted for execution: PID: 835
2020-07-20T12:09:57.237871+00:00  INFO   Beginning Flow run for 'flow2'
2020-07-20T12:09:57.273447+00:00  INFO   Starting flow run.
2020-07-20T12:09:57.273836+00:00  DEBUG  Flow 'flow2': Handling state change from Scheduled to Running
2020-07-20T12:09:57.581024+00:00  INFO   Task 'task2': Starting task run...
2020-07-20T12:09:57.724552+00:00  INFO   hello, task2
2020-07-20T12:09:57.835204+00:00  INFO   Task 'task2': finished task run for task with final state: 'Success'
2020-07-20T12:09:57.942237+00:00  INFO   Task 'flow1-runner': Starting task run...
2020-07-20T12:09:58.145036+00:00  ERROR  Unexpected error: HTTPError('400 Client Error: Bad Request for url: <http://localhost:4200/graphql>')
                                         Traceback (most recent call last):
                                           File "/usr/local/lib/python3.8/site-packages/prefect/engine/runner.py", line 48, in inner
                                             new_state = method(self, state, *args, **kwargs)
                                           File "/usr/local/lib/python3.8/site-packages/prefect/engine/task_runner.py", line 819, in get_task_run_state
                                             value = timeout_handler(
                                           File "/usr/local/lib/python3.8/site-packages/prefect/utilities/executors.py", line 188, in timeout_handler
                                             return fn(*args, **kwargs)
                                           File "/usr/local/lib/python3.8/site-packages/prefect/utilities/tasks.py", line 445, in method
                                             return run_method(self, *args, **kwargs)
                                           File "/usr/local/lib/python3.8/site-packages/prefect/tasks/prefect/flow_run.py", line 119, in run
                                             flow_run_id = client.create_flow_run(
                                           File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 877, in create_flow_run
                                             res = self.graphql(create_mutation, variables=dict(input=inputs))
                                           File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 213, in graphql
                                             result = <http://self.post|self.post>(
                                           File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 172, in post
                                             response = self._request(
                                           File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 328, in _request
                                             response = self._send_request(
                                           File "/usr/local/lib/python3.8/site-packages/prefect/client/client.py", line 265, in _send_request
                                             response.raise_for_status()
                                           File "/usr/local/lib/python3.8/site-packages/requests/models.py", line 941, in raise_for_status
                                             raise HTTPError(http_error_msg, response=self)
                                         requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: <http://localhost:4200/graphql>
2020-07-20T12:09:58.275483+00:00  INFO   Task 'flow1-runner': finished task run for task with final state: 'Failed'
2020-07-20T12:09:58.302057+00:00  INFO   Flow run FAILED: some reference tasks failed.
2020-07-20T12:09:58.302667+00:00  DEBUG  Flow 'flow2': Handling state change from Running to Failed
During this flow run the log/stdout of Apollo (wich is listening to
localhost:4200
) prints