Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some Questions + error on shared hosting #71

Closed
R1CH101 opened this issue Oct 21, 2018 · 5 comments
Closed

Some Questions + error on shared hosting #71

R1CH101 opened this issue Oct 21, 2018 · 5 comments
Labels
question Further information is requested

Comments

@R1CH101
Copy link

R1CH101 commented Oct 21, 2018

Hi,
Love Free Scout so far, just go a few questions,
is there a plan to email the customer when the status changes?

Also, the auto-reply only works once with every customer I get it when they have a conversation active or pending, however, once it is closed when they email again, should it send a new auto-reply message?

I kept getting an error on shared hosting about queue:work it would never run. there seems to be an error with withoutOverlapping()

I edit the app/Console/Kernel.php file and changed

$schedule->command('queue:work', Config('app.queue_work_params'))
            ->everyMinute()
            ->withoutOverlapping()
            ->sendOutputTo(storage_path().'/logs/queue-jobs.log');

to

if (stripos((string) shell_exec('ps xf | grep \'[q]ueue:work\''), 'artisan queue:work') === false) 
        {
            
            $schedule->command('queue:work', Config('app.queue_work_params'))
            ->everyMinute()
            ->sendOutputTo(storage_path().'/logs/queue-jobs.log');
            
        }

And now it is working perfectly.

Thanks
Richard

@freescout-helpdesk
Copy link
Contributor

Hi,

is there a plan to email the customer when the status changes?

Yes

Also, the auto-reply only works once with every customer I get it when they have a conversation active or pending, however, once it is closed when they email again, should it send a new auto-reply message?

Agreed. We will try to implement it too.

I kept getting an error on shared hosting about queue:work it would never run

How did you receive an error? Via email alert or saw it on System page?

@R1CH101
Copy link
Author

R1CH101 commented Oct 21, 2018

Hi,

How did you receive an error? Via email alert or saw it on System page?

On the system page queue:work said something like last successful run: ? Next run: ? and background jobs were not being executed.

Thanks

@freescout-helpdesk
Copy link
Contributor

Jobs mutexes are stored in cache (as file), so most likely you just needed to clear cache (php artisan cache:clear): https://github.com/freescout-helpdesk/freescout/wiki/Background-Jobs

@freescout-helpdesk freescout-helpdesk added the question Further information is requested label Oct 22, 2018
@R1CH101
Copy link
Author

R1CH101 commented Oct 24, 2018

Hi, Thanks for the reply, I tested the command with original file and it works. just had to give it some time.

Thanks
Richard

@R1CH101 R1CH101 closed this as completed Oct 24, 2018
@freescout-helpdesk
Copy link
Contributor

is there a plan to email the customer when the status changes?
@R1CH101 which statuses changes would you like to send to customer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants