question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a way to cancel and reschedule tasks

See original GitHub issue

Make it possible to cancel and reschedule given a task name and an instance Id. So basically something like this:

final String taskName = "myTaskName";
final OneTimeTask task = new MyOneTimeTask(taskName);
final String instanceId = "myInstanceId";

scheduler.scheduleForExecution(Instant.now().plusSeconds(5), task.instance(instanceId));

scheduler.reSchedule(taskName, instanceId, Instant.now().plusSeconds(15));
//Or
scheduler.cancelSchedule(taskName, instanceId);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kagkarlssoncommented, Apr 13, 2017

I think we need to

  • Add the methods to SchedulerClient interface, and implement in Scheduler
  • Easiest thing is to use existing methods for reschedule and remove in JdbcTaskRepository, after using getExecution to find any execution matching task+instance
0reactions
kagkarlssoncommented, May 4, 2017

This feature was implemented in version 2.0 thanks to the PR from @tedsteen . Closing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Write a Meeting Cancellation Email (With Examples)
4. Ask to reschedule ... If your meeting is still relevant, ask the other person to reschedule by providing a few times you...
Read more >
Task Cancellation | Microsoft Learn
Learn how to schedule cancellation of any associated tasks that are not completed within a period of time.
Read more >
Here's how successful people cancel meetings, Stanford ...
The right way to 'cancel' · 1. Respond to invitations promptly by clicking “accept,” “decline” or “tentative.” · 2. Notify attendees at least...
Read more >
How to Write a Polite Meeting Cancellation Email
1. It is better to dedicate some time and write it yourself, or at least from your own email address. 2. When terminating...
Read more >
Meeting Cancellation Emails: How to Write One [+Examples]
8 tips on how to write a meeting cancellation email · Include a clear subject line · Write it yourself · Send it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found