We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e8c80 commit b8614c0Copy full SHA for b8614c0
src/publishers/push.ts
@@ -46,7 +46,9 @@ const RETRY_LIMIT = 5
46
*/
47
export const runPushPublisher = async (): Promise<number> => {
48
for await (const doc of viewToStream(async params =>
49
- dbTasks.view('tasks_publishing', 'tasks_publishing', params)
+ Promise.resolve(
50
+ dbTasks.view('tasks_publishing', 'tasks_publishing', params)
51
+ )
52
)) {
53
const clean: TaskDoc = asTaskDoc(doc)
54
const currentTask = clean.doc
@@ -81,6 +83,7 @@ export const runPushPublisher = async (): Promise<number> => {
81
83
const canExecute = (task: Task): boolean => {
82
84
return (
85
task.action.inProgress == null &&
86
+ task.action.type === 'push' &&
87
task.action.repeat == null &&
88
task.action.inProgress === false
89
)
0 commit comments