Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • About Bonfire
SKC 🏳️‍🌈
@skc@scottodon.com  ·  activity timestamp yesterday

I feel like someone smart like @ross or @alex or maybe someone else had a library that let you run a long running process with progress indicators.

I'm trying to find something like https://github.com/deliciousbrains/wp-background-processing or https://github.com/woocommerce/action-scheduler/ but kicked off by a UI (via AJAX request) with a UI showing progress and/or when it's done.

Use-case: Trigger a one-time action and poll / show progress until it's complete. Like run an upgrade script for a plugin or process a batch of data.

#WordPress

  • Copy link
  • Flag this post
  • Block
Alex
@alex@www.alexstandiford.com replied  ·  activity timestamp yesterday

@skc

I don’t have the UI part down, but I solved this using Action scheduler. It’s become my go to for this stuff. Relatively safe to include as a dependency, reliable as can be.

My projects are leveraging PHPNomad’s Tasks library, but I don’t think that really helps you if you’re not in that ecosystem. (It just uses action scheduler anyway)

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this comment
  • Block
SKC 🏳️‍🌈
@skc@scottodon.com replied  ·  activity timestamp yesterday

@alex @skc phpnomad task stuff was maybe what I remembered. I didn’t know much about it.

Right now I’m going to go with action scheduler and build a custom API to poll for status and progress.

  • Copy link
  • Flag this comment
  • Block
Brandon Kraft ❤️‍🔥🧡
@kraft@religious.social replied  ·  activity timestamp yesterday

@skc that would be a good addition to action scheduler (APIs for progress indication). Would be curious to take a gander if what you're working on is able to be public.

  • Copy link
  • Flag this comment
  • Block
SKC 🏳️‍🌈
@skc@scottodon.com replied  ·  activity timestamp yesterday

@kraft will see if I can tackle this in a more abstracted way. I need it for Pods and I need it for a private project too.

  • Copy link
  • Flag this comment
  • Block
Alda Vigdís
@alda@topspicy.social replied  ·  activity timestamp yesterday

@skc @ross @alex Oh I wish Sidekiq for WordPress could be a thing.

  • Copy link
  • Flag this comment
  • Block
Ross Wintle
@ross@crikey.social replied  ·  activity timestamp yesterday

@skc We do that in some of our products. But we don't have a complete end-to-end library that does the background job(s), progress indicator and API to connect them.

And I don't know of one.

Sorry!

  • Copy link
  • Flag this comment
  • Block
SKC 🏳️‍🌈
@skc@scottodon.com replied  ·  activity timestamp yesterday

@ross I'm going to keep digging, I swear I saw something. Maybe I'll just roll something custom but was hoping I could find something I could implement for Pods too

  • Copy link
  • Flag this comment
  • Block
Log in

Encryptr.net Social

This is a forward thinking server running the Bonfire social media platform.

LGBTQA+ and BPOC friendly.

Encryptr.net Social: About · Code of conduct · Privacy ·
Encryptr.net social · 1.0.0-rc.3.6 no JS en
Automatic federation enabled
  • Explore
  • About
  • Code of Conduct
Home
Login