Skip to content

Templates/views #145

Open
Open

Description

@umer936

dereuromark-queue has nice templates to see the jobs. Is this something we want to have in cakephp/queue and they just haven't been made or is it intentional to keep the scope just for making it easier to use queuing methods and not having stuff like that?

Activity

  1. markstory commented on Feb 15, 2024

    @markstory
    Member

    Having monitoring views/controllers sounds interesting to me. I don't think any have been added this far as nobody has brought it up.

  2. umer936 commented on Feb 15, 2024

    @umer936
    ContributorAuthor

    Sweet. I'll do it then.
    https://github.com/umer936/queue

    https://github.com/dereuromark/cakephp-queue

    I'll likely take huge inspiration from yours @dereuromark if that's ok (unless you'd prefer to do it/have your name on the commits)

  3. dereuromark commented on Feb 15, 2024

    @dereuromark
    Member

    All good, glad it inspires people

  4. kevindecapite commented on Feb 19, 2024

    @kevindecapite

    @umer936 This would be a great value-add to the plugin. If I can contribute to what you're doing I'll certainly do so.

  5. umer936 commented on Mar 13, 2024

    @umer936
    ContributorAuthor

    @kevindecapite I have ideas in mind but haven't gotten to any implementation and it might be quite some time until I do so. Anyone feel free to get started.

    image
    ^ this is using Mark's

    Steps I see to take:

    1. I really like the Table schema from Mark's, so pulling from his migrations.
    2. Then mostly from his templates. (See screenshot)

    Something significantly more, but might be way scope creep, is having it auto-setup multiple queues so that one can have the "Abort".
    Basically on the system running Cake: 1 queue sending the job, and 1 queue with other messages.
    On the receiving side (for me it's Python): it ingests from the job queue, and also checks the other queue. If the other queue contains the job ID currently being run, it kills.

  6. markstory commented on Mar 14, 2024

    @markstory
    Member

    On the receiving side (for me it's Python): it ingests from the job queue, and also checks the other queue. If the other queue contains the job ID currently being run, it kills.

    Would this be additional state that needs to be maintained by the Queue plugin?

  7. umer936 commented on Mar 14, 2024

    @umer936
    ContributorAuthor

    No, but it would have a terminate() to set QueuedJobs table entry to failed => true, failure_message => User aborted. or similar.

    Right now it doesn't seem possible to override the 'queue' field from the config in the Controller. I end up array_mergeing it in the Controller to make a new config and using that before sending the job.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions