Skip to content

Commit 0cc468f

Browse files
committed
move comment about scheduling being reprocessed
1 parent 31cbefb commit 0cc468f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

st2actions/st2actions/scheduler/handler.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@
4444

4545
LOG = logging.getLogger(__name__)
4646

47-
# If an ActionExecutionSchedulingQueueItemDB object hasn't been updated fore more than this amount
48-
# of milliseconds, it will be marked as "handled=False".
49-
# As soon as an item is picked by scheduler to be processed, it should be processed very fast
50-
# (< 5 seconds). If an item is still being marked as processing it likely indicates that the
51-
# scheduler process which was processing that item crashed or similar so we need to mark it as
52-
# "handling=False" so some other scheduler process can pick it up.
53-
5447
# When a policy delayed execution is detected it will be try to be rescheduled by the scheduler
5548
# again in this amount of milliseconds.
5649
POLICY_DELAYED_EXECUTION_RESCHEDULE_TIME_MS = 2500
@@ -61,6 +54,12 @@ def __init__(self):
6154
self.message_type = LiveActionDB
6255
self._shutdown = False
6356
self._pool = eventlet.GreenPool(size=cfg.CONF.scheduler.pool_size)
57+
# If an ActionExecutionSchedulingQueueItemDB object hasn't been updated fore more than this amount
58+
# of milliseconds, it will be marked as "handled=False".
59+
# As soon as an item is picked by scheduler to be processed, it should be processed very fast
60+
# (< 5 seconds). If an item is still being marked as processing it likely indicates that the
61+
# scheduler process which was processing that item crashed or similar so we need to mark it as
62+
# "handling=False" so some other scheduler process can pick it up.
6463
self._execution_scheduling_timeout_threshold_ms = \
6564
cfg.CONF.scheduler.execution_scheduling_timeout_threshold_min \
6665
* 60 * 1000

0 commit comments

Comments
 (0)