Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Fola
  •  Fola
  • No customer Topic Starter
2017-07-20T10:31:59Z
We have built a web interface that surfaces Visual Cron jobs to the user but have also applied multi-tenancy by setting the Id of each job to "<tenantId><jobId>" (both are Guids). Having two concatenated Guids as an Id hasn't been a problem thus far for Jobs and Tasks but it seems that when we add triggers, the JobId property of the trigger needs to be set to the Id property of the associated Job.

This is where things go wrong as it seems there is an attempt to convert this (concatenated guid) property into a Guid type - which causes a crash on the server.

Is there a way around this? Either a way to add triggers without the Guid conversion or an alternative way to implement multi-tenancy (Job metadata) would be nice
Sponsor
Forum information
Support
2017-07-22T10:02:29Z
I am not sure I understand the nature of the problem. We do not present any concatenated Guids anywhere?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Fola
  •  Fola
  • No customer Topic Starter
2017-07-24T06:43:52Z
To be clear, WE are the ones using two concatenated Guids for the Id of our Jobs (programmatically - using the API).
When we create Tasks and TimeTriggers, these are linked to the Job by setting their respective JobId properties to the Id of the Job.
Because the value of the Id is two concatenated Guids, the Visual Cron client crashes when we try to view the Job.

In case you're wondering, the reason we use two concatenated Guids for the Job Id is because we're trying to isolate jobs that belong to different customers.
The first part of the Guid thus represents the customer's Id.

Is there anyway to avoid crashing the client with this multi-tenancy strategy or can you suggest an alternative method of segregating Jobs on a per-customer basis?

Thanks
Support
2017-07-24T10:05:21Z
No, it will crash as the Ids as used as Guids internally within VisualCron.

My suggestion is that you use two keys in your system.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top