Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.
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
5 changes: 5 additions & 0 deletions openaddr/ci/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def truthy(value):

TASK_QUEUE, DONE_QUEUE, DUE_QUEUE, HEARTBEAT_QUEUE = 'tasks', 'finished', 'due', 'heartbeat'

# A second queue to accept webhook-sourced jobs, for testing the Docker branch.
TASK_QUEUE_2 = 'tasks2'

# Additional delay after JOB_TIMEOUT for due tasks.
DUETASK_DELAY = timedelta(minutes=5)

Expand Down Expand Up @@ -771,6 +774,8 @@ def add_files_to_queue(queue, job_id, job_url, files, commit_sha, rerun):
delay = timedelta(seconds=len(tasks))

queue.put(task.asdata(), expected_at=td2str(delay))
other_queue = db_queue(queue.conn, TASK_QUEUE_2)
other_queue.put(task.asdata(), expected_at=td2str(delay))
tasks[file_id] = file_name

return tasks
Expand Down