Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions indico_toolkit/polling/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ class SubmissionIdsPendingAutoReview(GraphQLRequest): # type: ignore[misc, no-a
query SubmissionIdsPendingAutoReview($workflowIds: [Int]) {
submissions(
desc: false
filters: { status: PENDING_AUTO_REVIEW }
filters: {
AND: [
{ status: PENDING_AUTO_REVIEW }
{ filesDeleted: false }
{ retrieved: false }
]
}
limit: 1000
orderBy: ID
workflowIds: $workflowIds
Expand Down Expand Up @@ -39,13 +45,16 @@ class SubmissionIdsPendingDownstream(GraphQLRequest): # type: ignore[misc, no-a
submissions(
desc: false
filters: {
AND: {
retrieved: false
OR: [
{ status: COMPLETE }
{ status: FAILED }
]
}
AND: [
{
OR: [
{ status: COMPLETE }
{ status: FAILED }
]
}
{ filesDeleted: false }
{ retrieved: false }
]
}
limit: 1000
orderBy: ID
Expand Down