Skip to content

Commit da4ee75

Browse files
authored
Merge pull request #276 from akrherz/taf_delay
⚡️ Remove un-necessary TAF delay
2 parents fff48e0 + 5150a5d commit da4ee75

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/pywwa/workflows/taf.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
"""TAF Ingestor"""
22

3-
from typing import TYPE_CHECKING
4-
53
import click
64
from pyiem.nws.products.taf import parser
7-
from twisted.internet import reactor
8-
from twisted.internet.interfaces import IReactorTime
95

106
from pywwa import common
117
from pywwa.database import get_database
128
from pywwa.ldm import bridge
139

14-
if TYPE_CHECKING:
15-
reactor: IReactorTime
16-
1710

1811
def real_process(txn, raw):
1912
"""Process the product, please"""
@@ -22,11 +15,8 @@ def real_process(txn, raw):
2215
prod.sql(txn)
2316
baseurl = common.SETTINGS.get("pywwa_product_url", "pywwa_product_url")
2417
jmsgs = prod.get_jabbers(baseurl)
25-
# The downstream workflow needs to have these TAF messages available within
26-
# the AFOS database, so we add some delay here.
27-
# 15 seconds wasn't enough?
2818
for mess, htmlmess, xtra in jmsgs:
29-
reactor.callLater(30, common.send_message, mess, htmlmess, xtra)
19+
common.send_message(mess, htmlmess, xtra)
3020
if prod.warnings:
3121
common.email_error("\n\n".join(prod.warnings), prod.text)
3222

0 commit comments

Comments
 (0)