[GH-ISSUE #68] Recheck all in web dashboard not working #49

Open
opened 2026-02-27 20:05:09 +03:00 by kerem · 3 comments
Owner

Originally created by @tomballgithub on GitHub (Feb 20, 2026).
Original GitHub issue: https://github.com/misiektoja/instagram_monitor/issues/68

I always launch into console mode with the web dashboard enabled.
One user is monitored.
That user shows in the web dashboard.
I click Recheck All and this shows in the log, nothing shows on console:

I ordered the messages so they read top to bottom

11:34:50
Recheck All: Recheck requires at least 1 monitored user
11:34:50
Recheck all triggered (will override hours range for the next cycle)
Originally created by @tomballgithub on GitHub (Feb 20, 2026). Original GitHub issue: https://github.com/misiektoja/instagram_monitor/issues/68 I always launch into console mode with the web dashboard enabled. One user is monitored. That user shows in the web dashboard. I click Recheck All and this shows in the log, nothing shows on console: _I ordered the messages so they read top to bottom_ ``` 11:34:50 Recheck All: Recheck requires at least 1 monitored user 11:34:50 Recheck all triggered (will override hours range for the next cycle) ```
Author
Owner

@tomballgithub commented on GitHub (Feb 20, 2026):

I then tried Start All and it did initiate that

[DEBUG 17:38:04] UI Data Update: monitoring=True
* Recheck All: Staggering 1 targets with 1 hour, 30 minutes interval (jitter: 5 seconds)

* Planned poll times (processed alphabetically):
  - XXX @ ~17:38:39 (in 2 seconds)

Timestamp:                              Fri 20 Feb 2026, 17:38:37

But then when I hit the Recheck All button, it worked without the error about needing at least 1 user

* Staggered start interrupted for KK by recheck request!
And then it started checking....
<!-- gh-comment-id:3937662495 --> @tomballgithub commented on GitHub (Feb 20, 2026): I then tried Start All and it did initiate that ``` [DEBUG 17:38:04] UI Data Update: monitoring=True * Recheck All: Staggering 1 targets with 1 hour, 30 minutes interval (jitter: 5 seconds) * Planned poll times (processed alphabetically): - XXX @ ~17:38:39 (in 2 seconds) Timestamp: Fri 20 Feb 2026, 17:38:37 ``` But then when I hit the Recheck All button, it worked without the error about needing at least 1 user ``` * Staggered start interrupted for KK by recheck request! And then it started checking.... ```
Author
Owner

@tomballgithub commented on GitHub (Feb 21, 2026):

I'll add that if that 'requires at least 1 monitored user" message occurs, when it returns it should skip the next message that says "Recheck all triggered". OR, technically, the 'all triggered' message should occur before the call to recheck_all_targets, which puts up the warning about needed a monitored account.

From:

            # Trigger all
            recheck_all_targets()
            if CHECK_POSTS_IN_HOURS_RANGE:
                msg = "Recheck all triggered (will override hours range for the next cycle)"
            else:
                msg = "Recheck all triggered"
            success = True
            log_activity(msg)

To:

            # Trigger all
            if CHECK_POSTS_IN_HOURS_RANGE:
                msg = "Recheck all triggered (will override hours range for the next cycle)"
            else:
                msg = "Recheck all triggered"
            log_activity(msg)
            recheck_all_targets()
            success = True

I only have one account, so why is it hitting the 'else' on the code below and entering 'trigger all' mode.

    def api_trigger_check():  # type: ignore
        global MANUAL_CHECK_TRIGGERED
        data = flask_request.get_json(silent=True) or {}  # type: ignore
        target = data.get('target')

        if target:
            target = target.strip().lower()
            with WEB_DASHBOARD_DATA_LOCK:  # type: ignore
                if target in WEB_DASHBOARD_RECHECK_EVENTS:
                    WEB_DASHBOARD_RECHECK_EVENTS[target].set()
                    if CHECK_POSTS_IN_HOURS_RANGE:
                        msg = "Recheck triggered (will override hours range for the next cycle)"
                    else:
                        msg = "Recheck triggered"
                    success = True
                else:
                    msg = f"Recheck failed: target not running"
                    success = False
            log_activity(msg, user=target)
        else:
            # Trigger all
            recheck_all_targets()
            if CHECK_POSTS_IN_HOURS_RANGE:
                msg = "Recheck all triggered (will override hours range for the next cycle)"
            else:
                msg = "Recheck all triggered"
            success = True
            log_activity(msg)
<!-- gh-comment-id:3939313197 --> @tomballgithub commented on GitHub (Feb 21, 2026): I'll add that if that 'requires at least 1 monitored user" message occurs, when it returns it should skip the next message that says "Recheck all triggered". OR, technically, the 'all triggered' message should occur before the call to recheck_all_targets, which puts up the warning about needed a monitored account. From: ``` # Trigger all recheck_all_targets() if CHECK_POSTS_IN_HOURS_RANGE: msg = "Recheck all triggered (will override hours range for the next cycle)" else: msg = "Recheck all triggered" success = True log_activity(msg) ``` To: ``` # Trigger all if CHECK_POSTS_IN_HOURS_RANGE: msg = "Recheck all triggered (will override hours range for the next cycle)" else: msg = "Recheck all triggered" log_activity(msg) recheck_all_targets() success = True ``` I only have one account, so why is it hitting the 'else' on the code below and entering 'trigger all' mode. ``` def api_trigger_check(): # type: ignore global MANUAL_CHECK_TRIGGERED data = flask_request.get_json(silent=True) or {} # type: ignore target = data.get('target') if target: target = target.strip().lower() with WEB_DASHBOARD_DATA_LOCK: # type: ignore if target in WEB_DASHBOARD_RECHECK_EVENTS: WEB_DASHBOARD_RECHECK_EVENTS[target].set() if CHECK_POSTS_IN_HOURS_RANGE: msg = "Recheck triggered (will override hours range for the next cycle)" else: msg = "Recheck triggered" success = True else: msg = f"Recheck failed: target not running" success = False log_activity(msg, user=target) else: # Trigger all recheck_all_targets() if CHECK_POSTS_IN_HOURS_RANGE: msg = "Recheck all triggered (will override hours range for the next cycle)" else: msg = "Recheck all triggered" success = True log_activity(msg) ```
Author
Owner

@tomballgithub commented on GitHub (Feb 21, 2026):

Back to original issue. If I load up in console mode with 1 account and enter web dashboard:

Dashboard tab:

  • Top right says 'monitoring (1)
  • Monitored targets shows the account with status 'waiting', which is correct

Targets tab:

  • Manage Targets should the 1 account with status 'waiting'
    - If I click recheck button next to target, I get a popup saying "recheck failed: target not running"

So it looks like everything is correct, but it doesn't think a target is active.

Targets tab:

  • If I click stop button, popup says "Stopped monitoring: [Account Name]" and console follows
  • Start button restarts as expected
    - But on console it says "* Tracking XXX (and others)... next check for XXX planned at ~21:10:56 (in 7 hours, 18 minutes)"
    - Why '(and others)'? This is like above where I reported it seems to think there are multiple accounts

Are accounts launched from command line different from accounts monitored in web dashboard?

<!-- gh-comment-id:3939329890 --> @tomballgithub commented on GitHub (Feb 21, 2026): Back to original issue. If I load up in console mode with 1 account and enter web dashboard: Dashboard tab: - Top right says 'monitoring (1) - Monitored targets shows the account with status 'waiting', which is correct Targets tab: - Manage Targets should the 1 account with status 'waiting' _- If I click recheck button next to target, I get a popup saying "recheck failed: target not running"_ So it looks like everything is correct, but it doesn't think a target is active. Targets tab: - If I click stop button, popup says "Stopped monitoring: [Account Name]" and console follows - Start button restarts as expected _- But on console it says "* Tracking XXX (and others)... next check for XXX planned at ~21:10:56 (in 7 hours, 18 minutes)"_ _- Why '(and others)'? This is like above where I reported it seems to think there are multiple accounts_ Are accounts launched from command line different from accounts monitored in web dashboard?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/instagram_monitor#49
No description provided.