小编Sub*_*ham的帖子

任务无法运行 | 阿帕奇气流

我在运行气流 DAG 时遇到问题。有时我在日志中收到以下消息,并且 DAG 停止执行,但有时它工作正常。我尝试用谷歌搜索该错误,但没有找到任何内容。以下是我的日志。

[2020-06-17 14:50:06,983] {__init__.py:1133} INFO - Dependencies not met for <TaskInstance: feeds__my_feed.my_feed_feed_processor 2020-06-16T12:13:00+00:00 [running]>, dependency 'Task Instance State' FAILED: Task is in the 'running' state which is not a valid state for execution. The task must be cleared in order to be run.
[2020-06-17 14:50:06,984] {__init__.py:1133} INFO - Dependencies not met for <TaskInstance: feeds__my_feed.my_feed_feed_processor 2020-06-16T12:13:00+00:00 [running]>, dependency 'Task Instance Not Already Running' FAILED: Task is already running, it started on 2020-06-17 12:13:32.150826+00:00.
[2020-06-17 14:50:06,987] {logging_mixin.py:95} INFO …
Run Code Online (Sandbox Code Playgroud)

python python-3.x airflow airflow-scheduler

7
推荐指数
0
解决办法
6627
查看次数

图表未在 Web 浏览器中显示 | 阴谋 | Python

我刚刚开始学习Plotly,它在Jupyter Notebook. 但是当我运行相同的脚本时.py它会在浏览器中打开一个窗口,但随后显示

\n\n
\n

无法连接\n Firefox 无法\xe2\x80\x99 建立与位于 127.0.0.1:5875 的服务器的连接。\n 并且未显示图表或图形。

\n
\n\n

有人知道如何做到这一点吗?基本上我想显示来自csv在网络浏览器中显示数据。

\n

python data-visualization pandas plotly jupyter-notebook

4
推荐指数
1
解决办法
2603
查看次数

按用户分组选择5个连续日期的记录

我有以下表格结构,其中我只想要那些连续5个日期和uid分组的记录.

这是我的数据结构

user_master

uid | name
1   |  A
2   |  B
3   |  C
4   |  D
Run Code Online (Sandbox Code Playgroud)

tbl_referral

refId   |  uid  |   Date
1       |  1    |   01-09-2018
2       |  1    |   02-09-2018
3       |  1    |   03-09-2018
4       |  2    |   01-09-2018
5       |  2    |   02-09-2018
6       |  1    |   04-09-2018
7       |  2    |   05-09-2018
8       |  2    |   06-09-2018
9       |  1    |   05-09-2018
10      |  2    |   06-09-2018
Run Code Online (Sandbox Code Playgroud)

现在我想从tbl_referral获取那些日期连续出现5次的记录

要求的输出

uid | …
Run Code Online (Sandbox Code Playgroud)

mysql sql database

0
推荐指数
1
解决办法
58
查看次数