Coder Social home page Coder Social logo

contributte / scheduler Goto Github PK

View Code? Open in Web Editor NEW
30.0 7.0 10.0 101 KB

:hourglass: PHP job scheduler (cron) with locking for Nette Framework

Home Page: https://contributte.org/packages/contributte/scheduler.html

License: MIT License

PHP 93.74% Makefile 6.26%
php cron scheduler job task planning nette contributte

scheduler's Introduction

Website ๐Ÿš€ contributte.org | Contact ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป f3l1x.io | Twitter ๐Ÿฆ @contributte

Usage

To install latest version of contributte/scheduler use Composer.

composer require contributte/scheduler

Documentation

For details on how to use this package, check out our documentation.

Versions

State Version Branch Nette PHP
dev ^0.9 master 3.2+ >=8.1
stable ^0.8 master 3.2+ >=8.1

Development

See how to contribute to this package. This package is currently maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

scheduler's People

Contributors

f3l1x avatar fvesely avatar gappa avatar josefbenjac avatar mabar avatar martingold avatar ozzrell avatar petrparolek avatar vanam avatar xpackal5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

scheduler's Issues

Enable autoinject is not available in v8.0

Hello, in older versions i use autoinject argument in nonfig.neon file e.g.

scheduler:
	jobs:
		MyJob: {class: App\Jobs\MyJOb, inject: true}

In new version this option is no longer available.
In SchedulerExtension.php is only simple factory call without the possibility to set arguments.

$jobDefinition = $builder->addDefinition($this->prefix('job.' . $jobName))
					->setFactory($jobConfig)
					->setAutowired(false);

would will be possible to enable this option, or switch setAutowired to true

Split of console functionality

Hello all,

I would like to ask You , if You would mind separating the console functionality into its own package?
E.g. into a couple of scheduler & scheduler-console or scheduler-base & scheduler packages?

As I mostly do not use the console functionality at all
(I am calling the scheduler's run method from presenter),
all those console-related dependencies is completely unnecessary for me.

Thank You for Your reply.

Best regards

bin/console scheduler:list error

If i try list command it throws exception

A cell must be a TableCell, a scalar or an object implementing __toString, array given.

command run is OK

My config

scheduler:
    path: '%tempDir%/scheduler'
    jobs:
        - {cron: '0 1 * * *', callback: [@app\modules\User\scheduler\AuthCodeCleaner, do]}

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.