Giter Site home page Giter Site logo

mooxphp / jobs Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 6.0 1.13 MB

[READ-ONLY] Filament panel for managing job queues, failed jobs and batches

Home Page: https://moox.org

License: MIT License

PHP 100.00%
filament filamentphp filamentplugin job-queue job-scheduler laravel laravel-package

jobs's Issues

Status column sort issue

Hi when i want to sort by status, get an error:

Column not found: 1054 Unknown column 'status' in 'order clause'

Query:

SELECT
  *
FROM
  `job_manager`
ORDER BY
  `status` ASC
limit
  10 OFFSET 0

Can you manage this?

Thanks!

Z

Testing

Jobs has currently no fully automated tests, but we are on the way to automate testing. We need two kind of tests:

  1. The install and update commands
  2. The installed application itself

and there are some things to consider:

  • Is Filament already installed or not? Our installer provides auto-installation including Filament.
  • Is there data to migrate? Our updater migrates existing data and needs demo data for this.
  • It is important to test different platforms (Linux, Mac, Windows), environments (Forge-Server, Shared Hosts, Local development) and queue drivers (Redis, Database, Sync, SQS, Beanstalkd)

Test installation

composer create-project laravel/laravel moox-test
cd moox-test
mysqladmin -u root -p create moox-test
composer require filament/filament
php artisan filament:install --panels
php artisan make:filament-user
composer require moox/jobs
php artisan mooxjobs:install
mkdir monorepo
cd monorepo
git clone https://github.com/mooxphp/moox
cp app/Jobs/* ../app/Jobs/
cp app/Console/Commands/* ../app/Console/Commands/
cp app/Console/kernel.php ../app/Console/kernel.php
# final steps depend on the target system
composer require laravel/horizon # Forge only
php artisan queue:work
php artisan schedule:work

Run for a few hours on Forge, Vapor, Shared Hosting, Windows and Mac

Test the update

composer create-project laravel/laravel moox-test
cd moox-test
mysqladmin -u root -p create moox-test
composer require filament/filament
php artisan filament:install --panels
php artisan make:filament-user
composer require moox/jobs:2.0.9
php artisan mooxjobs:install
mkdir monorepo
cd monorepo
git clone https://github.com/mooxphp/moox
mysql -u root -p moox-test < database/sql/jobs/v2/failed_jobs.sql
mysql -u root -p moox-test < database/sql/jobs/v2/job_batches.sql
mysql -u root -p moox-test < database/sql/jobs/v2/job_manager.sql
mysql -u root -p moox-test < database/sql/jobs/v2/jobs.sql
cd ..
composer require moox/jobs:3.0
composer update
php artisan mooxjobs:update

Test installation with Filament install

composer create-project laravel/laravel moox-test
cd moox-test
mysqladmin -u root -p create moox-test
composer require filament/filament
composer require moox/jobs
php artisan mooxjobs:install

Test installation with Filament require

composer create-project laravel/laravel moox-test
cd moox-test
mysqladmin -u root -p create moox-test
composer require moox/jobs
php artisan mooxjobs:install

Cleanup after testing

mysql -u root -p drop database moox-test
cd ..
rm -Rf moox-test

Translations

German missing, some strings in Failed and Batch Resources are not translatable yet.

Tests

Include the tests
Be more welcoming
Github Actions
Badges, of course

Prepare for V3

Attention:

Moox Jobs V3.0 is a breaking release. There are some database table changes and an update command. .

There are several reasons to craft this release:

  • Some column sortings (like Status) are not working
  • Non-database queue drivers do not support pending jobs
  • The plugin does not offer control over queue workers or Supervisor

These improvements need additional database tables and change of existing fields, means a breaking change.

Our plan is to craft V3.0 that brings all needed db-changes, as well as an update command that does all the work.

Links:

Tasks:

  • Add new migrations
  • Add an update command
  • Test and improve update command
  • Update the install command
  • Test and improve the install command
    • check for Filament first
  • Feed the status field
  • Create a local test
    • DemoJob in docs
    • DemoJobCommand in docs
  • Status in Jobs not sortable (extend or not sortable)
  • Test run on all platforms
    • Local (Mac)
    • Local (Win)
    • Shared Host
    • Forge
    • Vapor
  • Make the status field sortable
  • Improve the docs
    • Manual install
    • Updating
    • Current status for non-DB driver
    • Changelog and Roadmap
  • Merge and draft new release

After preparation, these features could roll in separate minor releases as non-breaking changes:

  • Full Redis support
  • Full SQS support
  • Full Beanstalkd support
  • Managing queue workers, with Supervisor or as daemon

Pruning

re-wire config
test auto-pruning

Moving to Moox

Sorry

for the inconvenience, but we are changing Namespaces from adrolli/filament-job-monitor to mooxphp/jobs

Why?

  1. It is much shorter
  2. We want to start building an ecosystem named Moox

When?

We will

  • Change namespaces
  • Incorporate Jobs into the Monorepo
  • Draft a new release
  • Publish the package moox/jobs to Packagist, making it available for Composer
  • Test the package on Live platforms, create update docs
  • Abandon adrolli/ilament-job-monitor on Packagist, redirecting to moox/jobs, see composer/packagist#47
  • Cleanup and close issues here, moving them to the Monorepo

in the next few days.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.