Giter VIP home page Giter VIP logo

cron-bundle's People

Contributors

nicoren avatar nicoren-tangkoko avatar

Watchers

 avatar

cron-bundle's Issues

replace cache storage custom adapters

Describe the bug
Actually running pids are stored using symfony cache component. If cache is flushed or duration or process is longer than cache retention Time, the process is may be launched.

To Reproduce
Steps to reproduce the behavior:
Run process with long Time duration

Expected behavior
This process cannot be runned before thé previous run is completed

** Solution **
Creatte somme adapters to store pids:

  • Redis for distributed app
  • Filesystem

A tag will be added to tag adapters. Adapters would be added from external bundle.

Add a command line to enable cron job ( cron:job:enable )

Description
I would be able to enable a registered job.
Prerequisite
I'm connected using ssh client and my current path is the root path of my symfony environment.
Use case
As an administrator, i want to enable cron job.
When i execute the command "php bin/console cron:job:enable {job_id}"
then the job status change to disable.

Timezone consideration

Use configured timezone in symfony configuration.

Steps to reproduce (*)

When job is must run at 00:00, and symfony
Expected result (*)
Job run at 00h00 UTC+1

Actual result (*)

Job run at 00h00 UTC

Add running time in cron:crun result

As an administrator,
i would like to know running time of each process run by cron:run command.

Add column duration

** Expected result :**


Job Id Job name status Duration


60848d3be99a6651e4790ad2 test Success 10m


** Actual result :**


Job Id Job name status


60848d3be99a6651e4790ad2 test Success


Add a command line to disable cron job ( cron:job:disable )

Description
I would be able to disable a registered job.
Prerequisite
I'm connected using ssh client and my current path is the root path of my symfony environment.
Use case
As an administrator, i want to disable cron job.
When i execute the command "php bin/console cron:job:disable {job_id}"
then the job status change to disable.

Add a command line to list cron job ( cron:job:list )

Description
I would be able to list every registered job by CronBundle.
Prerequisite
I'm connected using ssh client and my current path is the root path of my symfony environment.
Use case
As an administrator, i want to get job list managed by CronBundle.
When i execute the command "php bin/console cron:job:list"
then a table containing jobs information is displayed with the following informations for each job :

  • job id
  • job name
  • job description
  • job command
  • job schedule
  • job status

create cron:run command

when php bin/console cron:run will be executed, every jobs every jobs with schedule property corresponding with current time will be executed concurrently by server.

Invalid field "safe" when updating doctrine schema

Hello,

When I try to execute the doctrine:mongodb:schema:create command, I receive this error :

Error in specification { key: { name: -1 }, unique: false, safe: false, background: false, name: "name_-1" } :: caused by :: The field 'safe' is not valid for an index specification. Specification: { key: { name: -1 }, unique: false, safe: false, background: false, name: "name_-1" }

It seems the value true set on "safe" has been deprecated (removing this line resolve the error).

Capture d’écran 2021-12-13 à 14 45 51

Module version : 1.0.1

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.