ProcessJob.perform_later(:begin_task) triggers the remote Lambda function regardless of JETS_ENV.
Examples:
$ JETS_ENV=development jets console
> ProcessJob.perform_later(:begin_task) # triggers the remote lambda function on the deployed demo-dev app
And
$ JETS_ENV=production jets console
> ProcessJob.perform_later(:begin_task) # triggers the remote lambda function on the deployed demo-prod app
Another way of putting it:
perform_later always triggers the remote lambda function. perform_now works within the same current process. If that process is on your local machine, it’s local. If that process is on lambda, it’s within lambda.