Skip to content

Cancel Scheduler question #1

@juzser

Description

@juzser

Hi Marcelo,

Sorry for bothering you. But I asked on the App-engines repo but get no response, so I hope somehow you can help me here.

I see you're using this.modify.getScheduler().cancelJob(data.value) to cancel a job.
I understand it will revoke the promise of scheduler, but I thought the cancelJob only has param jobId (string) instead of promise?

And I have a question here: RocketChat/Rocket.Chat.Apps-engine#381
If you have free time, please check and see if there is any idea.
The main problem is, if I want to public the slash command to users, so they cannot cancel the job separately, because cancelJob can only cancel the whole processor, not single scheduler task, as I understand.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions