• When I create a new post, when exactly it that going to be HTTP POST’d to my followers? Do I read this correctly that it might take an hour?

    wp cron event list
    +------------------------------------+---------------------+-----------------------+------------+
    | hook | next_run_gmt | next_run_relative | recurrence |
    +------------------------------------+---------------------+-----------------------+------------+
    | wp_version_check | 2024-10-15 22:57:25 | 58 minutes 33 seconds | 12 hours |
    | wp_privacy_delete_old_export_files | 2024-10-15 22:57:26 | 58 minutes 34 seconds | 1 hour |
    | activitypub_update_followers | 2024-10-15 22:57:27 | 58 minutes 35 seconds | 1 hour |
    | wp_update_plugins | 2024-10-15 23:27:25 | 1 hour 28 minutes | 12 hours |
    | wp_update_themes | 2024-10-15 23:57:25 | 1 hour 58 minutes | 12 hours |
    | wp_site_health_scheduled_check | 2024-10-16 21:57:26 | 23 hours 58 minutes | 1 week |
    | recovery_mode_clean_expired_keys | 2024-10-16 21:57:26 | 23 hours 58 minutes | 1 day |
    | activitypub_cleanup_followers | 2024-10-16 21:57:27 | 23 hours 58 minutes | 1 day |
    +------------------------------------+---------------------+-----------------------+------------+

    For FediTest purposes, how can I get it to do this 1) immediately and 2) predictably so we know whether the message sending worked or failed?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matthias Pfefferle

    (@pfefferle)

    Hey @johannesernst

    the listed ActivityPub related tasks are cleanup tasks and are not responsible for sending out activities. The Activity-Crons are timed directly, but have to be processed. I will check what the best way might be to process them, or maybe implement a feature flag to directly process them (and to bypass the queue).

    Thread Starter johannes.ernst

    (@johannesernst)

    I tried to curl wp-cron.php but it is an uncertain business. Trying for 15 seconds usually gets it sent but not always.

    Plugin Contributor Matt Wiebe

    (@mattwiebe)

    We did add a very slight delay recently in this PR (to ensure that we don’t send posts marked as private):

    https://github.com/Automattic/wordpress-activitypub/pull/959

    But it’s only 10 seconds into the future of the current time.

    Note that it may also take a while for a remote service to process and display the post even after it’s been sent, depending on the remote server’s software and load.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘ActivityPub message sending time constants’ is closed to new replies.