You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #4825, having names be the IDs in the Jobs List Widget has some limitations. If we're willing to make breaking changes, we could use a system where adding a job returns an ID for that job, which can be later used to move that job among different statuses (i.e. running, finished, aborted, queued).
I was thinking something like this:
typeJobId=stringinterfaceJobInit{name: stringstatusMessage?: stringprogressPct?: number}interfaceJobextendsJobInit{id: JobId}interfaceStatusMessageUpdate{statusMessage: string}interfaceProgressPctUpdate{progressPct: number}interfaceStatusMessageAndProgressPctUpdate{statusMessage: stringprogressPct: number}typeUpdate=|StatusMessageUpdate|ProgressPctUpdate|StatusMessageAndProgressPctUpdateinterfaceJobsList{queued: Map<JobId,Job>running: Map<JobId,Job>finished: Map<JobId,Job>aborted: Map<JobId,Job>/** Add new Job to queued */queueJob(job: JobInit): JobId/** Add new Job to running */runJob(job: JobInit): JobId/** Move existing job from queued to running */runQueuedJob(id: JobId,update?: Update): voidupdateJob(jobId: JobId,update: Update): void/** Move existing job from running to finished */finishJob(id: JobId): void/** Move existing job from running to aborted */abortJob(id: JobId): voidremoveQueuedJob(jobId: JobId): voidremoveRunningJob(jobId: JobId): voidremoveFinishedJob(jobId: JobId): voidremoveAbortedJob(jobId: JobId): void}
Apollo uses the Jobs List Widget, but it wouldn't be difficult to update its usage to any breaking changes.
The text was updated successfully, but these errors were encountered:
As discussed in #4825, having names be the IDs in the Jobs List Widget has some limitations. If we're willing to make breaking changes, we could use a system where adding a job returns an ID for that job, which can be later used to move that job among different statuses (i.e. running, finished, aborted, queued).
I was thinking something like this:
Apollo uses the Jobs List Widget, but it wouldn't be difficult to update its usage to any breaking changes.
The text was updated successfully, but these errors were encountered: