You must be aware of the possibility that the job queue definitions on the remote host might be different from those on the local host. The job is enqueued on the remote host as if it were a local job submitted on that host. If the job does not qualify for any of the queues, it is discontinued.
The job queuing algorithm is outlined in Selecting the Queue for a Job under Tasking from Programming Languages.

