Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jn fix callback order #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Jn fix callback order #39

wants to merge 2 commits into from

Conversation

jacknoble
Copy link
Member

No description provided.

# Per documentation here https://github.com/sidekiq/sidekiq/wiki/Really-Complex-Workflows-with-Batches
# All batches must have a job. Batches that have child batches must have those child batches
# *initialized* by a job. So this job is dedicated to running the first step of every orchestration
# while inside the orchestration level batch.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Succinct, makes sense.

Simplekiq::BatchTrackerJob.perform_async(job.class.name, orchestration_batch.bid, args)

new.run_step(workflow, 0)
Simplekiq::KickoffJob.perform_async(workflow)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This appears to potentially break the on_complete and on_success callbacks for an OrchestrationJob, as they now run immediately after the workflow begins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants