msavin / SteveJobs

A simple jobs queue that just works (for Meteor.js)
Other
207 stars 35 forks source link

Client side jobs #74

Closed agustinjch closed 5 years ago

agustinjch commented 5 years ago

I'm writing an admin view in my project to be able to see on going jobs (I know there is the GUI, but I need some stuff there for my project).

So I've been trying to do as it's written in the wiki here https://github.com/msavin/SteveJobs/wiki/Engineering , but it doesn't work creating the collection jobs_data , getting an error:

Error: There is already a collection named "jobs_data"

I don't know if I'm doing something wrong, or basically it doesn't work that way.

msavin commented 5 years ago

Try to initialize the collection only on the client. If you are doing it in a shared folder, you will get that error because the collection is already initialized on the server.

On Mon, Apr 8, 2019 at 1:08 PM Agustin Jamardo notifications@github.com wrote:

I'm writing an admin view in my project to be able to see on going jobs (I know there is the GUI, but I need some stuff there for my project).

So I've been trying to do as it's written in the wiki here https://github.com/msavin/SteveJobs/wiki/Engineering , but it doesn't work creating the collection jobs_data , getting an error:

Error: There is already a collection named "jobs_data"

I don't know if I'm doing something wrong, or basically it doesn't work that way.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/msavin/SteveJobs/issues/74, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7-g9QBT8OaxasuTj2gGUSow3SlyV9Nks5veyMZgaJpZM4ch6Fv .

agustinjch commented 5 years ago

Hello again.

First, thanks for the fast reply!

I had it in a shared file but inside a if (Meteor.isClient) and I was getting that error.

I did as you said, and I'm still getting the same error.

If you need more info, let me know and I can paste here the files.

Thanks in advance

msavin commented 5 years ago

Hmm, that should do it. Do you have the debug package installed? That might be causing the client side collection to be initialized

On Mon, Apr 8, 2019 at 1:22 PM Agustin Jamardo notifications@github.com wrote:

Hello again.

First, thanks for the fast reply!

I had it in a shared file but inside a if (Meteor.isClient) and I was getting that error.

I did as you said, and I'm still getting the same error.

If you need more info, let me know and I can paste here the files.

Thanks in advance

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/msavin/SteveJobs/issues/74#issuecomment-480791606, or mute the thread https://github.com/notifications/unsubscribe-auth/AB7-g80_UZh-r7XAQI1cOT9DQqvmZn0kks5veyZ8gaJpZM4ch6Fv .

agustinjch commented 5 years ago

Hello again,

Found the problem, I had the blaze package msavin:sjobs-ui-blaze installed. I guess that in this package, the jobs_data collection is initialized to, that's why I was getting the error.

Thanks again!

Cheers