ramonribeiro96

ramonribeiro96

Member Since 2 Months Ago

Londrina

Experience Points
90
Total
Experience

4,910 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
90 XP
Aug
07
2 months ago
Activity icon

Replied to Supervisor Is Doing The Same Job Several Times

My retry_after was 1 (in config/queue), because I thought it was minutes. I switched to 60 seconds and it looks like it worked. Thank you @talinon

Aug
05
2 months ago
Activity icon

Replied to Supervisor Is Doing The Same Job Several Times

My job has timeout and retryAfter too:

public $retryAfter = 15;
public $timeout = 30;
public $tries = 3;
Activity icon

Replied to Supervisor Is Doing The Same Job Several Times

@talinon I don't have an event configured, I do a query on an API and dispatch when creating an instance (a replica of the API instance). So it's not dispatched more than once.

This job takes 2 to 6 seconds, depending on the file size.

Activity icon

Replied to Supervisor Is Doing The Same Job Several Times

My supervisor:

[program:queue_sync]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
autostart=true
autorestart=true
user=ubuntu
numprocs=8
redirect_stderr=true
stdout_logfile=/var/www/folder/storage/logs/queue_sync.log
stopwaitsecs=3600

My processes (Supervisor):

user       863  0.0  0.5 106528 44008 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       864  0.0  0.5 106528 44044 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       865  0.0  0.5 106528 44008 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       871  0.0  0.5 106528 44076 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       873  0.0  0.5 106528 44052 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       880  0.0  0.5 106528 44068 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       881  0.0  0.5 106528 44120 ?        S    Aug03   0:40 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3
user       889  0.0  0.5 106528 44140 ?        S    Aug03   0:39 /usr/bin/php /var/www/folder/artisan queue:work database --queue=syncOracle --tries=3

My job processes running (note that here they have the same file several times):

user    139388  0.0  0.0   2608   604 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510241755530588734 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510241755530588734
user    139390  0.0  0.0   2608   612 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510241755530588734 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510241755530588734
user    139392  0.0  0.0   2608   608 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510242010363288737 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510242010363288737
user    139396  0.0  0.0   2608   604 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510242010363288737 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510242010363288737
user    139399  0.0  0.0   2608   608 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510242265144088740 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510242265144088740
user    139401  0.0  0.0   2608   596 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510242010363288737 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510242010363288737
user    139409  0.0  0.0   2608   612 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510242265144088740 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510242265144088740
user    139412  0.0  0.0   2608   596 ?        S    14:31   0:00 sh -c oci os object put -ns inf -bn inf --name 1/2020-08-05/1.3.12.2.1107.5.2.40.71357.2020080510242265144088740 --file /var/www/folder/1.3.12.2.1107.5.2.40.71357.2020080510242265144088740

My logs (queue:work):

[2020-08-05 11:38:32][1955] Processed:  App\Jobs\Sync
[2020-08-05 11:38:32][1958] Processing: App\Jobs\Sync
[2020-08-05 11:38:32][1956] Processed:  App\Jobs\Sync
[2020-08-05 11:38:32][1959] Processing: App\Jobs\Sync
..........

what seems to be happening is that he hasn't finished executing process 2, so when he finishes process 1 he tries process 2 again

Activity icon

Started a new Conversation Supervisor Is Doing The Same Job Several Times

I am using the supervisor with 8 processes, but he is doing the same process about 3 times simultaneously, is there any way to correct this?

I'm using Job with driver database:

dispatch(new JobsSync($syncCreate))->onConnection('database')->onQueue('syncOracle');